From b98832508b9c8c2fb380555561e08fecee601418 Mon Sep 17 00:00:00 2001 From: dlopatin Date: Tue, 16 Apr 2024 08:38:23 +0300 Subject: [PATCH] =?UTF-8?q?=D1=83=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=B7=D0=B0=D0=BA=D0=BE=D0=BC=D0=BC=D0=B5=D0=BD=D1=82?= =?UTF-8?q?=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=BD=D0=BE=D0=B3=D0=BE=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=B4=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Drawnings/DrawningLocomotive.cs | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/WarmlyLocomotive/Drawnings/DrawningLocomotive.cs b/WarmlyLocomotive/Drawnings/DrawningLocomotive.cs index 743dc42..995d717 100644 --- a/WarmlyLocomotive/Drawnings/DrawningLocomotive.cs +++ b/WarmlyLocomotive/Drawnings/DrawningLocomotive.cs @@ -89,18 +89,6 @@ public class DrawningLocomotive _pictureHeight = drawningLocomotiveHeight; } - //public void Init(int speed, double weight, Color bodyColor, Color - //additionalColor, bool tube, bool fuelTank) - //{ - // EntityWarmlyLocomotive = new EntityWarmlyLocomotive(); - // EntityWarmlyLocomotive.Init(speed, weight, bodyColor, additionalColor, - // tube, fuelTank); - // _pictureWidth = null; - // _pictureHeight = null; - // _startPosX = null; - // _startPosY = null; - //} - /// /// Установка границ поля /// @@ -236,15 +224,6 @@ public class DrawningLocomotive return; } Pen pen = new(Color.Black); - - //Brush additionalBrush = new SolidBrush(EntityWarmlyLocomotive.AdditionalColor); - - //труба - //if (EntityWarmlyLocomotive.Tube) - //{ - // g.DrawRectangle(pen, _startPosX.Value + 40, _startPosY.Value, 20, 30); - // g.FillRectangle(additionalBrush, _startPosX.Value + 40, _startPosY.Value, 20, 40); - //} //локомотив Brush br = new SolidBrush(EntityLocomotive.BodyColor); @@ -271,12 +250,6 @@ public class DrawningLocomotive g.DrawEllipse(pen, _startPosX.Value + 120, _startPosY.Value + 50, 20, 20); g.FillEllipse(blBr, _startPosX.Value + 120, _startPosY.Value + 50, 20, 20); - // отсек для топлива - //if (EntityWarmlyLocomotive.FuelTank) - //{ - // g.DrawRectangle(pen, _startPosX.Value + 80, _startPosY.Value + 40, 50, 40); - // g.FillRectangle(additionalBrush, _startPosX.Value + 80, _startPosY.Value + 40, 50, 40); - //} } } \ No newline at end of file