From 5f0fea57fe586abe48a502a0d0ec79e15326915d Mon Sep 17 00:00:00 2001 From: MorozovDanil Date: Mon, 15 Apr 2024 02:13:54 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ProjectContainerShip/ProjectContainerShip/FormShipCollection.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();