PIBD-14_Lavrova_K.I._LabWork03_Simple #5

Closed
Kristik wants to merge 3 commits from LabWork03 into LabWork02
3 changed files with 7 additions and 5 deletions
Showing only changes of commit e3e51539c2 - Show all commits

View File

@ -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
}
}
}

View File

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

View File

@ -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;