форматирование кода
This commit is contained in:
parent
262b7106d1
commit
2bac38aea2
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user