проверка

This commit is contained in:
MorozovDanil 2024-04-15 02:13:54 +04:00
parent 8070b792bf
commit 5f0fea57fe

View File

@ -65,7 +65,7 @@ namespace ProjectContainerShip
return; return;
} }
if (_company + _drawningShip) if (_company + _drawningShip != -1)
{ {
MessageBox.Show("Объект добавлен"); MessageBox.Show("Объект добавлен");
pictureBox.Image = _company.Show(); pictureBox.Image = _company.Show();