лабораторная в процессе

This commit is contained in:
кристина лаврова 2024-04-25 08:37:27 +04:00
parent 98990e36de
commit e3e51539c2
3 changed files with 7 additions and 5 deletions

View File

@ -32,15 +32,15 @@ public class DrawningEntityFighter : DrawningTrackedVehicle
base.DrawTransport(g);
if (fighter.Kovsh) if (fighter.Kovsh)
{ {
//ковш //ковш
g.DrawRectangle(pen, _startPosX.Value - 2, _startPosY.Value + 37, 8, 15); g.DrawRectangle(pen, _startPosX.Value - 15, _startPosY.Value + 15, 8, 15);
g.FillRectangle(CraneBrush, _startPosX.Value - 2, _startPosY.Value + 37, 8, 15); g.FillRectangle(CraneBrush, _startPosX.Value - 15, _startPosY.Value + 15, 8, 15);
g.DrawRectangle(pen, _startPosX.Value - -6, _startPosY.Value + 37, 4, 1); g.DrawRectangle(pen, _startPosX.Value - 15, _startPosY.Value + , 4, 1);
} }
@ -52,6 +52,7 @@ public class DrawningEntityFighter : DrawningTrackedVehicle
} }
} }
} }

View File

@ -121,7 +121,7 @@
buttonAddFighter.TabIndex = 2; buttonAddFighter.TabIndex = 2;
buttonAddFighter.Text = "Добавление истребителя"; buttonAddFighter.Text = "Добавление истребителя";
buttonAddFighter.UseVisualStyleBackColor = true; buttonAddFighter.UseVisualStyleBackColor = true;
buttonAddFighter.Click += ButtonAddTrackedVehicle_Click; buttonAddFighter.Click += ButtonAddEntityFighter_Click;
// //
// comboBoxSelectorCompany // comboBoxSelectorCompany
// //

View File

@ -70,6 +70,7 @@ public partial class FormTrackedVehicleCollection : Form
GetColor(random), GetColor(random),
GetColor(random), GetColor(random),
Convert.ToBoolean(random.Next(0, 2)), Convert.ToBoolean(random.Next(0, 2))); Convert.ToBoolean(random.Next(0, 2)), Convert.ToBoolean(random.Next(0, 2)));
break; break;
default: default:
return; return;