PIbd-21 Potapov N.S. LabWork07 #7

Closed
ns.potapov wants to merge 12 commits from LabWork07 into LabWork06
2 changed files with 5 additions and 3 deletions
Showing only changes of commit 405fef33f9 - Show all commits

View File

@ -141,6 +141,7 @@ namespace ProjectStormtrooper
catch (StorageOverflowException ex)
{
MessageBox.Show(ex.Message);
_logger.LogWarning("Ошибка добавления: " + ex.Message);
}
}
/// <summary>
@ -182,6 +183,7 @@ namespace ProjectStormtrooper
catch (PlaneNotFoundException ex)
{
MessageBox.Show(ex.Message);
_logger.LogWarning("Ошибка удаления: " + ex.Message);
}
}
/// <summary>

View File

@ -70,9 +70,9 @@ namespace ProjectStormtrooper
/// <returns></returns>
public static T? operator -(PlanesGenericCollection<T, U> 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;
}
/// <summary>
/// Получение объекта IMoveableObject