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; }