мелкие изменения x2
This commit is contained in:
parent
40c301658b
commit
4d51d18658
@ -37,12 +37,9 @@ public class DrawningAccordionBus:DrawningBus
|
|||||||
{
|
{
|
||||||
g.DrawRectangle(new Pen(Color.Black), _startPosX.Value + 70, _startPosY.Value, 40, 30);
|
g.DrawRectangle(new Pen(Color.Black), _startPosX.Value + 70, _startPosY.Value, 40, 30);
|
||||||
g.FillRectangle(new HatchBrush(HatchStyle.Vertical, Color.Black, EntityBus.BodyColor), _startPosX.Value + 70, _startPosY.Value, 40, 30);
|
g.FillRectangle(new HatchBrush(HatchStyle.Vertical, Color.Black, EntityBus.BodyColor), _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, _startPosY.Value, 70, 30);
|
|
||||||
g.DrawRectangle(new Pen(Color.Black), _startPosX.Value + 110, _startPosY.Value, 70, 30);
|
g.DrawRectangle(new Pen(Color.Black), _startPosX.Value + 110, _startPosY.Value, 70, 30);
|
||||||
|
}
|
||||||
|
|
||||||
//стекла
|
//стекла
|
||||||
if (accordionBus.BodyGlass)
|
if (accordionBus.BodyGlass)
|
||||||
{
|
{
|
||||||
|
@ -171,7 +171,10 @@ public class DrawningBus
|
|||||||
{
|
{
|
||||||
if (EntityBus == null || !_startPosX.HasValue || !_startPosY.HasValue)
|
if (EntityBus == null || !_startPosX.HasValue || !_startPosY.HasValue)
|
||||||
return;
|
return;
|
||||||
|
//кузов
|
||||||
|
Brush br = new SolidBrush(EntityBus.BodyColor);
|
||||||
|
g.FillRectangle(br, _startPosX.Value, _startPosY.Value, 180, 30);
|
||||||
|
g.DrawRectangle(new Pen(Color.Black), _startPosX.Value, _startPosY.Value, 180, 30);
|
||||||
//диски
|
//диски
|
||||||
Brush brWhite = new SolidBrush(Color.White);
|
Brush brWhite = new SolidBrush(Color.White);
|
||||||
g.FillEllipse(brWhite, _startPosX.Value, _startPosY.Value + 25, 20, 15);
|
g.FillEllipse(brWhite, _startPosX.Value, _startPosY.Value + 25, 20, 15);
|
||||||
@ -182,14 +185,6 @@ public class DrawningBus
|
|||||||
g.FillEllipse(brWheel, _startPosX.Value + 110, _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);
|
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.DrawRectangle(new Pen(Color.Black), _startPosX.Value, _startPosY.Value, 70, 30);
|
|
||||||
g.DrawRectangle(new Pen(Color.Black), _startPosX.Value + 110, _startPosY.Value, 70, 30);
|
|
||||||
|
|
||||||
Pen penWheel = new Pen(Color.Black);
|
Pen penWheel = new Pen(Color.Black);
|
||||||
g.DrawEllipse(penWheel, _startPosX.Value, _startPosY.Value + 25, 20, 15);
|
g.DrawEllipse(penWheel, _startPosX.Value, _startPosY.Value + 25, 20, 15);
|
||||||
g.DrawEllipse(penWheel, _startPosX.Value + 50, _startPosY.Value + 25, 20, 15);
|
g.DrawEllipse(penWheel, _startPosX.Value + 50, _startPosY.Value + 25, 20, 15);
|
||||||
|
@ -118,7 +118,7 @@
|
|||||||
buttonCreateBus.Name = "buttonCreateBus";
|
buttonCreateBus.Name = "buttonCreateBus";
|
||||||
buttonCreateBus.Size = new Size(216, 23);
|
buttonCreateBus.Size = new Size(216, 23);
|
||||||
buttonCreateBus.TabIndex = 11;
|
buttonCreateBus.TabIndex = 11;
|
||||||
buttonCreateBus.Text = "Создать автобус без гармошки";
|
buttonCreateBus.Text = "Создать автобус";
|
||||||
buttonCreateBus.UseVisualStyleBackColor = true;
|
buttonCreateBus.UseVisualStyleBackColor = true;
|
||||||
buttonCreateBus.Click += buttonCreateBus_Click;
|
buttonCreateBus.Click += buttonCreateBus_Click;
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user