Фикс метода кнопки 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;
}
var formAirBomberConfig = new FormShipConfig();
formAirBomberConfig.AddEvent(new Action<DrawingShip>(ship => {
var formShipConfig = new FormShipConfig();
formShipConfig.AddEvent(new Action<DrawingShip>(ship => {
_mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty].add(new DrawingObjectShip(ship));
pictureBox.Image = _mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty].ShowSet();}));
formAirBomberConfig.Show();
formShipConfig.Show();
}
/// <summary>
/// Удаление объекта