точно готовая 8 лаба

This commit is contained in:
Полина Чубыкина 2023-12-20 10:29:28 +04:00
parent c37d2ef26e
commit 801b062ccb

View File

@ -56,8 +56,7 @@ namespace Sailboat.Generics
throw new StorageOverflowException(_maxCount); throw new StorageOverflowException(_maxCount);
if (equal != null && _places.Contains(boat, equal)) if (equal != null && _places.Contains(boat, equal))
{ {
//throw new StorageOverflowException("Данный объект уже есть в коллекции");
//MessageBox.Show("Данный объект уже есть в коллекции");
return -1; return -1;
} }
_places.Insert(position, boat); _places.Insert(position, boat);