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); }