From eeead030bbb2f916c57b44a523385d3488a09df7 Mon Sep 17 00:00:00 2001 From: MorozovDanil Date: Mon, 19 Feb 2024 02:27:27 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B0=20=D0=B2?= =?UTF-8?q?=20=D0=BE=D1=82=D1=80=D0=B8=D1=81=D0=BE=D0=B2=D0=BA=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProjectContainerShip/DrawningContainerShip.cs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/ProjectContainerShip/ProjectContainerShip/DrawningContainerShip.cs b/ProjectContainerShip/ProjectContainerShip/DrawningContainerShip.cs index 14dc86c..095031b 100644 --- a/ProjectContainerShip/ProjectContainerShip/DrawningContainerShip.cs +++ b/ProjectContainerShip/ProjectContainerShip/DrawningContainerShip.cs @@ -194,12 +194,6 @@ public class DrawningContainerShip g.DrawEllipse(pen, _startPosX.Value, _startPosY.Value + 60, 25, 25); g.DrawEllipse(pen, _startPosX.Value + 105, _startPosY.Value + 60, 25, 25); - //палуба - - Brush brYellow = new SolidBrush(Color.LightYellow); - g.DrawRectangle(pen, _startPosX.Value + 20, _startPosY.Value + 30, 30, 30); - g.FillRectangle(brYellow, _startPosX.Value + 20, _startPosY.Value + 30, 30, 30); - //кузов Brush br = new SolidBrush(EntityContainerShip.BodyColor); @@ -208,7 +202,12 @@ public class DrawningContainerShip g.FillRectangle(br, _startPosX.Value + 10, _startPosY.Value + 60, 110, 20); g.FillEllipse(br, _startPosX.Value, _startPosY.Value + 60, 25, 25); g.FillEllipse(br, _startPosX.Value + 105, _startPosY.Value + 60, 25, 25); + + //палуба + //Brush brYellow = new SolidBrush(Color.LightYellow); + g.DrawRectangle(pen, _startPosX.Value + 20, _startPosY.Value + 30, 30, 30); + g.FillRectangle(br, _startPosX.Value + 20, _startPosY.Value + 30, 30, 30); // кран if (EntityContainerShip.Crane)