From 742275b7e4aaf7274d124760b7edaf3a8c32a887 Mon Sep 17 00:00:00 2001 From: ksenianeva <95441235+ksenianeva@users.noreply.github.com> Date: Tue, 15 Nov 2022 13:01:34 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=BC=D0=B5=D1=82?= =?UTF-8?q?=D0=BE=D0=B4=D0=B0=20=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA=D0=B8=20Add?= =?UTF-8?q?Ship.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ContainerShip/ContainerShip/FormMapWithSetShips.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ContainerShip/ContainerShip/FormMapWithSetShips.cs b/ContainerShip/ContainerShip/FormMapWithSetShips.cs index 42c141b..68c660c 100644 --- a/ContainerShip/ContainerShip/FormMapWithSetShips.cs +++ b/ContainerShip/ContainerShip/FormMapWithSetShips.cs @@ -71,11 +71,11 @@ namespace ContainerShip { return; } - var formAirBomberConfig = new FormShipConfig(); - formAirBomberConfig.AddEvent(new Action(ship => { + var formShipConfig = new FormShipConfig(); + formShipConfig.AddEvent(new Action(ship => { _mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty].add(new DrawingObjectShip(ship)); pictureBox.Image = _mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty].ShowSet();})); - formAirBomberConfig.Show(); + formShipConfig.Show(); } /// /// Удаление объекта