ISEbd-21 Melnikov I. O. Lab work 05 Base #8

Closed
Igor-Melnikov wants to merge 6 commits from LabWork05 into LabWork04
Showing only changes of commit 2bac38aea2 - Show all commits

View File

@ -113,26 +113,6 @@
FormLocomotiveConfig formLocomotiveConfig = new();
formLocomotiveConfig.AddEvent(new (AddLocomotive));
formLocomotiveConfig.Show();
/*
if (listBoxMaps.SelectedIndex == -1)
{
return;
}
FormLocomotive form = new();
if (form.ShowDialog() == DialogResult.OK)
{
DrawningObjectLocomotive locomotive = new(form.SelectedLocomotive);
if ((_mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty] + locomotive) > -1)
{
MessageBox.Show("Объект добавлен");
pictureBoxLocomotives.Image = _mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty].ShowSet();
}
else
{
MessageBox.Show("Не удалось добавить объект");
}
}
*/
}
private void AddLocomotive(DrawningLocomotive locomotive)
{