PIbd-22. Stroev V.M. Lab Work 03 #5

Closed
StroevVladimir wants to merge 2 commits from Lab03 into Lab02
Showing only changes of commit 5c2d3d0465 - Show all commits

View File

@ -29,7 +29,7 @@ namespace Monorail
if (form.ShowDialog() == DialogResult.OK) if (form.ShowDialog() == DialogResult.OK)
{ {
if (_monorails + form.SelectedMonorail) if (_monorails + form.SelectedMonorail != -1)
{ {
MessageBox.Show("Объект добавлен"); MessageBox.Show("Объект добавлен");
pictureBoxCollection.Image = _monorails.ShowMonorails(); pictureBoxCollection.Image = _monorails.ShowMonorails();