Заменена машина на самолет
This commit is contained in:
parent
c5f38eed07
commit
004ef856b9
@ -110,8 +110,8 @@
|
|||||||
FormAirBomber form = new();
|
FormAirBomber form = new();
|
||||||
if (form.ShowDialog() == DialogResult.OK)
|
if (form.ShowDialog() == DialogResult.OK)
|
||||||
{
|
{
|
||||||
DrawningObject car = new(form.SelectedAirplane);
|
DrawningObject airplane = new(form.SelectedAirplane);
|
||||||
if (_mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty] + car)
|
if (_mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty] + airplane)
|
||||||
{
|
{
|
||||||
MessageBox.Show("Объект добавлен");
|
MessageBox.Show("Объект добавлен");
|
||||||
pictureBox.Image = _mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty].ShowSet();
|
pictureBox.Image = _mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty].ShowSet();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user