Точно итоговая доработка.

This commit is contained in:
Programmist73 2022-10-11 11:26:33 +04:00
parent 658b34011d
commit f95c155755
3 changed files with 1 additions and 8 deletions

View File

@ -21,9 +21,6 @@ namespace Airbus
{"Звёздные войны", new StarWarsMap() } {"Звёздные войны", new StarWarsMap() }
}; };
/*//объект от класса карты с набором объектов
private MapWithSetPlanesGeneric<DrawningObjectPlane, AbstractMap> _mapPlanesCollectionGeneric;*/
//объект от коллекции карт //объект от коллекции карт
private readonly MapsCollection _mapsCollection; private readonly MapsCollection _mapsCollection;

View File

@ -185,11 +185,6 @@ namespace Airbus
int currentWidth = 2; int currentWidth = 2;
int currentHeight = 7; 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()) foreach (var plane in _setPlanes.GetAirbus())
{ {
plane.SetObject(currentWidth * _placeSizeWidth + 20, currentHeight * _placeSizeHeight + 20, _pictureWidth, _pictureHeight); plane.SetObject(currentWidth * _placeSizeWidth + 20, currentHeight * _placeSizeHeight + 20, _pictureWidth, _pictureHeight);

View File

@ -68,6 +68,7 @@ namespace Airbus
{ {
return _mapStorage[ind]; return _mapStorage[ind];
} }
MessageBox.Show("Такой карты нет"); MessageBox.Show("Такой карты нет");
return null; return null;
} }