Yahontov O.U. LabWork5 #6
@ -28,10 +28,12 @@ namespace Trolleybus
|
||||
Brush dBlue = new SolidBrush(Color.DarkBlue);
|
||||
Brush bWhite = new SolidBrush(Color.White);
|
||||
Pen WinBlue = new Pen(Color.Blue);
|
||||
Brush br = new SolidBrush(smallTrolleybus?.DopColor ?? Color.Black);
|
||||
|
||||
base.DrawTransport(g);
|
||||
if (smallTrolleybus.BodyKit)
|
||||
{
|
||||
g.FillRectangle(br, _startPosX, _startPosY, 200, 50);
|
||||
g.DrawRectangle(pen, _startPosX, _startPosY, 200, 50);
|
||||
g.DrawRectangle(pen, _startPosX + 100, _startPosY + 10, 20, 40);
|
||||
g.FillEllipse(brBlue, _startPosX, _startPosY + 5, 20, 25);
|
||||
@ -59,11 +61,13 @@ namespace Trolleybus
|
||||
{
|
||||
g.DrawLine(pen, _startPosX + 100, _startPosY - 10, _startPosX + 150, _startPosY - 20);
|
||||
g.DrawLine(pen, _startPosX + 150, _startPosY - 20, _startPosX, _startPosY - 30);
|
||||
g.FillRectangle(dopBrush, _startPosX + 50, _startPosY - 10, 100, 10);
|
||||
g.DrawRectangle(pen, _startPosX + 50, _startPosY - 10, 100, 10);
|
||||
}
|
||||
|
||||
if (smallTrolleybus.Battary)
|
||||
{
|
||||
g.FillRectangle(dopBrush, _startPosX + 100, _startPosY, 10, 10);
|
||||
g.DrawRectangle(pen, _startPosX + 100, _startPosY, 10, 10);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user