diff --git a/AccordionBus/AccordionBus/Drawnings/DrawningBus.cs b/AccordionBus/AccordionBus/Drawnings/DrawningBus.cs index 2eabd43..cbac30d 100644 --- a/AccordionBus/AccordionBus/Drawnings/DrawningBus.cs +++ b/AccordionBus/AccordionBus/Drawnings/DrawningBus.cs @@ -171,8 +171,7 @@ public class DrawningBus { if (EntityBus == null || !_startPosX.HasValue || !_startPosY.HasValue) return; - - + //диски Brush brWhite = new SolidBrush(Color.White); g.FillEllipse(brWhite, _startPosX.Value, _startPosY.Value + 25, 20, 15); @@ -182,13 +181,12 @@ public class DrawningBus g.FillEllipse(brWheel, _startPosX.Value + 50, _startPosY.Value + 25, 20, 15); g.FillEllipse(brWheel, _startPosX.Value + 110, _startPosY.Value + 25, 20, 15); g.FillEllipse(brWheel, _startPosX.Value + 160, _startPosY.Value + 25, 20, 15); + //кузов Brush br = new SolidBrush(EntityBus.BodyColor); g.FillRectangle(br, _startPosX.Value, _startPosY.Value, 70, 30); g.FillRectangle(br, _startPosX.Value + 110, _startPosY.Value, 70, 30); - g.FillRectangle(br, _startPosX.Value +70, _startPosY.Value, 40, 30); - g.DrawRectangle(new Pen(Color.Black), _startPosX.Value, _startPosY.Value, 70, 30); g.DrawRectangle(new Pen(Color.Black), _startPosX.Value + 110, _startPosY.Value, 70, 30); @@ -197,6 +195,7 @@ public class DrawningBus g.DrawEllipse(penWheel, _startPosX.Value + 50, _startPosY.Value + 25, 20, 15); g.DrawEllipse(penWheel, _startPosX.Value + 110, _startPosY.Value + 25, 20, 15); g.DrawEllipse(penWheel, _startPosX.Value + 160, _startPosY.Value + 25, 20, 15); + //двери Brush brDoor = new SolidBrush(Color.Black); g.FillRectangle(brDoor, _startPosX.Value + 45, _startPosY.Value + 10, 5, 20);