From 2bac38aea28e68d9d5891beb881027eea7cba989 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B5=D0=BB=D1=8C=D0=BD=D0=B8=D0=BA=D0=BE=D0=B2=20?= =?UTF-8?q?=D0=98=D0=B3=D0=BE=D1=80=D1=8C?= Date: Wed, 9 Nov 2022 18:39:13 +0400 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=BE=D1=80=D0=BC=D0=B0=D1=82=D0=B8?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=BA=D0=BE=D0=B4?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Locomotives/FormMapWithSetLocomotives.cs | 20 ------------------- 1 file changed, 20 deletions(-) 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) {