удаление закомментированного кода

This commit is contained in:
Данил Лопатин 2024-04-16 08:38:23 +03:00
parent 775539064d
commit b98832508b

View File

@ -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;
//}
/// <summary>
/// Установка границ поля
/// </summary>
@ -237,15 +225,6 @@ public class DrawningLocomotive
}
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);
Brush blBr = new SolidBrush(Color.Black);
@ -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);
//}
}
}