Batylkin A.O. LabWork05 #7

Closed
Stranni15k wants to merge 2 commits from LabWork5 into LabWork4
Showing only changes of commit 227bfeed97 - Show all commits

View File

@ -12,7 +12,7 @@ namespace ElectricLocomotive
{
public partial class FormMapWithSetLocomotive : Form
{
private MapWithSetLocomotivGeneric<DrawningObjectLocomotive, AbstractMap> _mapShipCollectionGeneric;
private MapWithSetLocomotivGeneric<DrawningObjectLocomotive, AbstractMap> _mapLocomotiveCollectionGeneric;
private readonly Dictionary<string, AbstractMap> _mapDict = new()
{
{"Простая карта", new SimpleMap() },
@ -67,12 +67,12 @@ namespace ElectricLocomotive
}
if (map != null)
{
_mapShipCollectionGeneric = new MapWithSetLocomotivGeneric<DrawningObjectLocomotive, AbstractMap>(
_mapLocomotiveCollectionGeneric = new MapWithSetLocomotivGeneric<DrawningObjectLocomotive, AbstractMap>(
pictureBox1.Width, pictureBox1.Height, map);
}
else
{
_mapShipCollectionGeneric = null;
_mapLocomotiveCollectionGeneric = null;
}
}
private void ButtonAddLocomotive_Click(object sender, EventArgs e)