diff --git a/ProjectContainerShip/ProjectContainerShip/FormShipCollection.cs b/ProjectContainerShip/ProjectContainerShip/FormShipCollection.cs index f8bf5aa..3e86c5f 100644 --- a/ProjectContainerShip/ProjectContainerShip/FormShipCollection.cs +++ b/ProjectContainerShip/ProjectContainerShip/FormShipCollection.cs @@ -65,7 +65,7 @@ namespace ProjectContainerShip return; } - if (_company + _drawningShip) + if (_company + _drawningShip != -1) { MessageBox.Show("Объект добавлен"); pictureBox.Image = _company.Show();