Фикс метода кнопки AddShip.
This commit is contained in:
parent
740b975dc7
commit
742275b7e4
@ -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>
|
||||||
/// Удаление объекта
|
/// Удаление объекта
|
||||||
|
Loading…
Reference in New Issue
Block a user