From f95c155755f5bd27cd20cbbc83024004849e32f0 Mon Sep 17 00:00:00 2001 From: Programmist73 Date: Tue, 11 Oct 2022 11:26:33 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A2=D0=BE=D1=87=D0=BD=D0=BE=20=D0=B8=D1=82?= =?UTF-8?q?=D0=BE=D0=B3=D0=BE=D0=B2=D0=B0=D1=8F=20=D0=B4=D0=BE=D1=80=D0=B0?= =?UTF-8?q?=D0=B1=D0=BE=D1=82=D0=BA=D0=B0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Airbus/Airbus/FormMapWithSetPlanes.cs | 3 --- Airbus/Airbus/MapWithSetPlanesGeneric.cs | 5 ----- Airbus/Airbus/MapsCollection.cs | 1 + 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Airbus/Airbus/FormMapWithSetPlanes.cs b/Airbus/Airbus/FormMapWithSetPlanes.cs index 386f90f..b411b67 100644 --- a/Airbus/Airbus/FormMapWithSetPlanes.cs +++ b/Airbus/Airbus/FormMapWithSetPlanes.cs @@ -21,9 +21,6 @@ namespace Airbus {"Звёздные войны", new StarWarsMap() } }; - /*//объект от класса карты с набором объектов - private MapWithSetPlanesGeneric _mapPlanesCollectionGeneric;*/ - //объект от коллекции карт private readonly MapsCollection _mapsCollection; diff --git a/Airbus/Airbus/MapWithSetPlanesGeneric.cs b/Airbus/Airbus/MapWithSetPlanesGeneric.cs index 1aca9f6..85ac38b 100644 --- a/Airbus/Airbus/MapWithSetPlanesGeneric.cs +++ b/Airbus/Airbus/MapWithSetPlanesGeneric.cs @@ -185,11 +185,6 @@ namespace Airbus int currentWidth = 2; int currentHeight = 7; - // for (int i = 0; i < _setPlanes.Count; i++) - - //_setPlanes[index]?.SetObject(currentWidth * _placeSizeWidth + 20, currentHeight * _placeSizeHeight + 20, _pictureWidth, _pictureHeight); - //_setPlanes[index]?.DrawningObject(g); - foreach (var plane in _setPlanes.GetAirbus()) { plane.SetObject(currentWidth * _placeSizeWidth + 20, currentHeight * _placeSizeHeight + 20, _pictureWidth, _pictureHeight); diff --git a/Airbus/Airbus/MapsCollection.cs b/Airbus/Airbus/MapsCollection.cs index 9648532..5ec8352 100644 --- a/Airbus/Airbus/MapsCollection.cs +++ b/Airbus/Airbus/MapsCollection.cs @@ -68,6 +68,7 @@ namespace Airbus { return _mapStorage[ind]; } + MessageBox.Show("Такой карты нет"); return null; }