diff --git a/ProjectStormtrooper/ProjectStormtrooper/FormPlaneCollection.cs b/ProjectStormtrooper/ProjectStormtrooper/FormPlaneCollection.cs index af3463c..2884e68 100644 --- a/ProjectStormtrooper/ProjectStormtrooper/FormPlaneCollection.cs +++ b/ProjectStormtrooper/ProjectStormtrooper/FormPlaneCollection.cs @@ -141,6 +141,7 @@ namespace ProjectStormtrooper catch (StorageOverflowException ex) { MessageBox.Show(ex.Message); + _logger.LogWarning("Ошибка добавления: " + ex.Message); } } /// @@ -182,6 +183,7 @@ namespace ProjectStormtrooper catch (PlaneNotFoundException ex) { MessageBox.Show(ex.Message); + _logger.LogWarning("Ошибка удаления: " + ex.Message); } } /// diff --git a/ProjectStormtrooper/ProjectStormtrooper/PlanesGenericCollection.cs b/ProjectStormtrooper/ProjectStormtrooper/PlanesGenericCollection.cs index 8960a66..aa3fa4a 100644 --- a/ProjectStormtrooper/ProjectStormtrooper/PlanesGenericCollection.cs +++ b/ProjectStormtrooper/ProjectStormtrooper/PlanesGenericCollection.cs @@ -70,9 +70,9 @@ namespace ProjectStormtrooper /// public static T? operator -(PlanesGenericCollection collect, int pos) { - T? obj = collect._collection[pos]; - collect._collection.Remove(pos); - return obj; + T? obj = collect._collection[pos]; + collect._collection.Remove(pos); + return obj; } /// /// Получение объекта IMoveableObject