Конец

This commit is contained in:
Марат Заргаров 2022-11-16 09:56:42 +04:00
parent f97d2694ef
commit 0e4164f751
3 changed files with 4 additions and 11 deletions

View File

@ -19,7 +19,7 @@ namespace DoubleDeckerBus
/// <param name="secondFloor">Признак наличия второго этажа</param> /// <param name="secondFloor">Признак наличия второго этажа</param>
/// <param name="line">Признак наличия полосы</param> /// <param name="line">Признак наличия полосы</param>
public DrawningDoubleDeckerBus(int speed, float weight, Color bodyColor, Color dopColor, bool secondFloor, bool bodyKit, bool stair) : public DrawningDoubleDeckerBus(int speed, float weight, Color bodyColor, Color dopColor, bool secondFloor, bool bodyKit, bool stair) :
base(speed, weight, bodyColor, 115, 100) base(speed, weight, bodyColor, 120, 92)
{ {
Bus = new EntityDoubleDeckerBus(speed, weight, bodyColor, dopColor, secondFloor, bodyKit, stair); Bus = new EntityDoubleDeckerBus(speed, weight, bodyColor, dopColor, secondFloor, bodyKit, stair);
} }

View File

@ -28,15 +28,7 @@ namespace DoubleDeckerBus
} }
public void DrawningObject(Graphics g) public void DrawningObject(Graphics g)
{ {
if (_bus == null) return; _bus.DrawTransport(g);
if (_bus is DrawningDoubleDeckerBus doubleDeckerBus)
{
doubleDeckerBus.DrawTransport(g);
}
else
{
_bus.DrawTransport(g);
}
} }
} }

View File

@ -16,7 +16,8 @@ namespace DoubleDeckerBus
public FormMap() public FormMap()
{ {
InitializeComponent(); InitializeComponent();
_abstractMap = new MyMap(); _abstractMap = new SimpleMap();
comboBoxSelectorMap.Text = "Простая карта";
} }
/// <summary> /// <summary>
/// Заполнение информации по объекту /// Заполнение информации по объекту