From c141ffc95eff04e169aad7f0ba4311fc656e7f3e Mon Sep 17 00:00:00 2001 From: DarkScarletDoom <93650805+DarkScarletDoom@users.noreply.github.com> Date: Fri, 16 Feb 2024 11:38:12 +0400 Subject: [PATCH] First lab brench --- LocomativeProject/LocomativeProject/DrawningLocomotive.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/LocomativeProject/LocomativeProject/DrawningLocomotive.cs b/LocomativeProject/LocomativeProject/DrawningLocomotive.cs index 506995a..c4be050 100644 --- a/LocomativeProject/LocomativeProject/DrawningLocomotive.cs +++ b/LocomativeProject/LocomativeProject/DrawningLocomotive.cs @@ -179,7 +179,6 @@ Brush bodyBrush = new SolidBrush(EntityLocomotive.BodyColor); Brush blackBrush = new SolidBrush(Color.Black); Brush whiteBrush = new SolidBrush(Color.White); - //границы тепловоза DrawPolygon(g, pen, bodyBrush, _startPosX.Value, _startPosY.Value, @@ -190,7 +189,6 @@ g.FillRectangle(additionalBrush, _startPosX.Value, _startPosY.Value + 20, 110, 20); g.DrawRectangle(pen, _startPosX.Value, _startPosY.Value + 20, 110, 20); g.FillRectangle(blackBrush, _startPosX.Value - 5, _startPosY.Value + 5, 5, 30); - //шасси DrawPolygon(g, pen, blackBrush, _startPosX.Value - 5, _startPosY.Value + 45, @@ -221,7 +219,6 @@ g.DrawRectangle(pen, _startPosX.Value + 85, _startPosY.Value + 5, 10, 10); g.DrawRectangle(pen, _startPosX.Value + 70, _startPosY.Value + 5, 10, 10); g.DrawRectangle(pen, _startPosX.Value + 5, _startPosY.Value + 5, 10, 10); - //труба if (EntityLocomotive.ExehaustPipe) { @@ -229,7 +226,7 @@ g.FillRectangle(greyBrush, _startPosX.Value + 80, _startPosY.Value - 10, 5, 10); g.DrawRectangle(pen, _startPosX.Value + 80, _startPosY.Value - 10, 5, 10); } - + // отсек для топлива if (EntityLocomotive.FuelCompartment) { g.FillRectangle(bodyBrush, _startPosX.Value + 20, _startPosY.Value + 10, 10, 20);