diff --git a/solution/lab1/Drawnings/DrawningEntityFighter.cs b/solution/lab1/Drawnings/DrawningEntityFighter.cs index 56e5816..b249e1c 100644 --- a/solution/lab1/Drawnings/DrawningEntityFighter.cs +++ b/solution/lab1/Drawnings/DrawningEntityFighter.cs @@ -32,15 +32,15 @@ public class DrawningEntityFighter : DrawningTrackedVehicle - + base.DrawTransport(g); if (fighter.Kovsh) { //ковш - g.DrawRectangle(pen, _startPosX.Value - 2, _startPosY.Value + 37, 8, 15); - g.FillRectangle(CraneBrush, _startPosX.Value - 2, _startPosY.Value + 37, 8, 15); - g.DrawRectangle(pen, _startPosX.Value - -6, _startPosY.Value + 37, 4, 1); + g.DrawRectangle(pen, _startPosX.Value - 15, _startPosY.Value + 15, 8, 15); + g.FillRectangle(CraneBrush, _startPosX.Value - 15, _startPosY.Value + 15, 8, 15); + g.DrawRectangle(pen, _startPosX.Value - 15, _startPosY.Value + , 4, 1); } @@ -52,6 +52,7 @@ public class DrawningEntityFighter : DrawningTrackedVehicle } + } } diff --git a/solution/lab1/FormTrackedVehicleCollection.Designer.cs b/solution/lab1/FormTrackedVehicleCollection.Designer.cs index a1ab031..4bb4cee 100644 --- a/solution/lab1/FormTrackedVehicleCollection.Designer.cs +++ b/solution/lab1/FormTrackedVehicleCollection.Designer.cs @@ -121,7 +121,7 @@ buttonAddFighter.TabIndex = 2; buttonAddFighter.Text = "Добавление истребителя"; buttonAddFighter.UseVisualStyleBackColor = true; - buttonAddFighter.Click += ButtonAddTrackedVehicle_Click; + buttonAddFighter.Click += ButtonAddEntityFighter_Click; // // comboBoxSelectorCompany // diff --git a/solution/lab1/FormTrackedVehicleCollection.cs b/solution/lab1/FormTrackedVehicleCollection.cs index cfa1c2a..08648ca 100644 --- a/solution/lab1/FormTrackedVehicleCollection.cs +++ b/solution/lab1/FormTrackedVehicleCollection.cs @@ -70,6 +70,7 @@ public partial class FormTrackedVehicleCollection : Form GetColor(random), GetColor(random), Convert.ToBoolean(random.Next(0, 2)), Convert.ToBoolean(random.Next(0, 2))); + break; default: return;