Фикс метода кнопки AddShip.

This commit is contained in:
ksenianeva 2022-11-15 13:01:34 +04:00
parent 740b975dc7
commit 742275b7e4

View File

@ -71,11 +71,11 @@ namespace ContainerShip
{ {
return; return;
} }
var formAirBomberConfig = new FormShipConfig(); var formShipConfig = new FormShipConfig();
formAirBomberConfig.AddEvent(new Action<DrawingShip>(ship => { formShipConfig.AddEvent(new Action<DrawingShip>(ship => {
_mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty].add(new DrawingObjectShip(ship)); _mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty].add(new DrawingObjectShip(ship));
pictureBox.Image = _mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty].ShowSet();})); pictureBox.Image = _mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty].ShowSet();}));
formAirBomberConfig.Show(); formShipConfig.Show();
} }
/// <summary> /// <summary>
/// Удаление объекта /// Удаление объекта