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