diff --git a/AircraftCarrier/AircraftCarrier/AircraftsGenericCollection.cs b/AircraftCarrier/AircraftCarrier/AircraftsGenericCollection.cs index 4a8a8bf..928955c 100644 --- a/AircraftCarrier/AircraftCarrier/AircraftsGenericCollection.cs +++ b/AircraftCarrier/AircraftCarrier/AircraftsGenericCollection.cs @@ -32,7 +32,6 @@ namespace AircraftCarrier.Generics _collection = new SetGeneric(width * height); } /// Перегрузка оператора сложения - public static int operator +(AircraftsGenericCollection collect, T? obj) { @@ -94,7 +93,6 @@ namespace AircraftCarrier.Generics { if (aircraft != null) { - aircraft.SetPosition(i % Width * _placeSizeWidth + 3, (Height - i / Width - 1) * _placeSizeHeight +5); aircraft.DrawTransport(g); } diff --git a/AircraftCarrier/AircraftCarrier/FormAircraftCollection.cs b/AircraftCarrier/AircraftCarrier/FormAircraftCollection.cs index f4ebfd2..61817b1 100644 --- a/AircraftCarrier/AircraftCarrier/FormAircraftCollection.cs +++ b/AircraftCarrier/AircraftCarrier/FormAircraftCollection.cs @@ -72,13 +72,11 @@ namespace AircraftCarrier { return; } - var obj = _storage[listBoxStorage.SelectedItem.ToString() ?? string.Empty]; if (obj == null) { return; } - FormAircraftCarrier form = new(); if (form.ShowDialog() == DialogResult.OK) { diff --git a/AircraftCarrier/AircraftCarrier/SetGeneric.cs b/AircraftCarrier/AircraftCarrier/SetGeneric.cs index fdf0310..006b946 100644 --- a/AircraftCarrier/AircraftCarrier/SetGeneric.cs +++ b/AircraftCarrier/AircraftCarrier/SetGeneric.cs @@ -72,5 +72,4 @@ namespace AircraftCarrier.Generics } } } - }