From dfe7e1f30edb68ce441125a6f53b41833909eab6 Mon Sep 17 00:00:00 2001 From: sofiaivv Date: Tue, 31 Oct 2023 03:54:18 +0400 Subject: [PATCH] done --- MotorBoat/MotorBoat/DrawningMotorBoat.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/MotorBoat/MotorBoat/DrawningMotorBoat.cs b/MotorBoat/MotorBoat/DrawningMotorBoat.cs index 71dae55..9f570eb 100644 --- a/MotorBoat/MotorBoat/DrawningMotorBoat.cs +++ b/MotorBoat/MotorBoat/DrawningMotorBoat.cs @@ -153,9 +153,7 @@ namespace MotorBoat return; } Pen pen = new(Color.Black, 1); - Brush mainBrush = new SolidBrush(EntityMotorBoat.BodyColor); - Brush additionalBrush = new SolidBrush(EntityMotorBoat.AdditionalColor); // корпус Point[] hull = new Point[] @@ -175,13 +173,13 @@ namespace MotorBoat g.DrawEllipse(pen, _startPosX + 20, _startPosY + 15, 100, 40); // осн часть - Brush blockBrush = new SolidBrush(Color.Olive); + Brush blockBrush = new SolidBrush(EntityMotorBoat.AdditionalColor); g.FillRectangle(blockBrush, _startPosX + 20, _startPosY + 15, 80, 40); g.DrawRectangle(pen, _startPosX + 20, _startPosY + 15, 80, 40); // двигатель Brush engineBrush = new - SolidBrush(Color.Olive); + SolidBrush(EntityMotorBoat.AdditionalColor); g.FillRectangle(engineBrush, _startPosX + 0, _startPosY + 10, 5, 50); g.DrawRectangle(pen, _startPosX + 0, _startPosY + 10, 5, 50); }