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)