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(); } /// /// Удаление объекта