From dc179c572aafdcd98d7da8be7ff3c7fc05a155a6 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: Sun, 5 Nov 2023 21:13:18 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B5=D1=89=D0=B5=20=D1=87=D1=83=D1=82=D1=8C?= =?UTF-8?q?=20=D1=87=D1=83=D1=82=D1=8C=20=D0=B8=20=D0=BB=D0=B0=D0=B1=D0=B0?= =?UTF-8?q?=20=D0=B3=D0=BE=D1=82=D0=BE=D0=B2=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sailboat/Sailboat/FormBoatCollection.cs | 1 - Sailboat/Sailboat/SetGeneric.cs | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Sailboat/Sailboat/FormBoatCollection.cs b/Sailboat/Sailboat/FormBoatCollection.cs index 23c29c1..8894ff4 100644 --- a/Sailboat/Sailboat/FormBoatCollection.cs +++ b/Sailboat/Sailboat/FormBoatCollection.cs @@ -60,7 +60,6 @@ namespace Sailboat FormSailboat form = new(); if (form.ShowDialog() == DialogResult.OK) { - //вот здесь лажа какая то if (obj + form.SelectedBoat) { MessageBox.Show("Объект добавлен"); diff --git a/Sailboat/Sailboat/SetGeneric.cs b/Sailboat/Sailboat/SetGeneric.cs index 2c62ce4..95a2392 100644 --- a/Sailboat/Sailboat/SetGeneric.cs +++ b/Sailboat/Sailboat/SetGeneric.cs @@ -4,7 +4,6 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -//пофиксить чота namespace Sailboat.Generics { internal class SetGeneric where T : class @@ -66,8 +65,7 @@ namespace Sailboat.Generics { return false; } - - _places[position] = null; + _places.RemoveAt(position); return true; } ///