diff --git a/Locomotives/Locomotives/FormMapWithSetLocomotives.cs b/Locomotives/Locomotives/FormMapWithSetLocomotives.cs index ec6a988..d92f7bd 100644 --- a/Locomotives/Locomotives/FormMapWithSetLocomotives.cs +++ b/Locomotives/Locomotives/FormMapWithSetLocomotives.cs @@ -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) {