правки лаб3

This commit is contained in:
DyCTaTOR 2023-10-25 10:41:39 +04:00
parent 358c3795cd
commit 5c2d3d0465

View File

@ -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();