PIbd-22. Stroev V.M. Lab Work 03 #5
@ -29,7 +29,7 @@ namespace Monorail
|
||||
|
||||
if (form.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
if (_monorails + form.SelectedMonorail)
|
||||
if (_monorails + form.SelectedMonorail != -1)
|
||||
{
|
||||
MessageBox.Show("Объект добавлен");
|
||||
pictureBoxCollection.Image = _monorails.ShowMonorails();
|
||||
|
Loading…
Reference in New Issue
Block a user