From 801b062ccb781c5fee7af1fcf04e7c943868f6f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=BE=D0=BB=D0=B8=D0=BD=D0=B0=20=D0=A7=D1=83=D0=B1?= =?UTF-8?q?=D1=8B=D0=BA=D0=B8=D0=BD=D0=B0?= Date: Wed, 20 Dec 2023 10:29:28 +0400 Subject: [PATCH] =?UTF-8?q?=D1=82=D0=BE=D1=87=D0=BD=D0=BE=20=D0=B3=D0=BE?= =?UTF-8?q?=D1=82=D0=BE=D0=B2=D0=B0=D1=8F=208=20=D0=BB=D0=B0=D0=B1=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sailboat/Sailboat/SetGeneric.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);