Добавил warn логи на удаление пустого и переполнение
This commit is contained in:
parent
9bb3eb73a4
commit
405fef33f9
@ -141,6 +141,7 @@ namespace ProjectStormtrooper
|
|||||||
catch (StorageOverflowException ex)
|
catch (StorageOverflowException ex)
|
||||||
{
|
{
|
||||||
MessageBox.Show(ex.Message);
|
MessageBox.Show(ex.Message);
|
||||||
|
_logger.LogWarning("Ошибка добавления: " + ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -182,6 +183,7 @@ namespace ProjectStormtrooper
|
|||||||
catch (PlaneNotFoundException ex)
|
catch (PlaneNotFoundException ex)
|
||||||
{
|
{
|
||||||
MessageBox.Show(ex.Message);
|
MessageBox.Show(ex.Message);
|
||||||
|
_logger.LogWarning("Ошибка удаления: " + ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -70,9 +70,9 @@ namespace ProjectStormtrooper
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static T? operator -(PlanesGenericCollection<T, U> collect, int pos)
|
public static T? operator -(PlanesGenericCollection<T, U> collect, int pos)
|
||||||
{
|
{
|
||||||
T? obj = collect._collection[pos];
|
T? obj = collect._collection[pos];
|
||||||
collect._collection.Remove(pos);
|
collect._collection.Remove(pos);
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Получение объекта IMoveableObject
|
/// Получение объекта IMoveableObject
|
||||||
|
Loading…
x
Reference in New Issue
Block a user