супер пупер готовая laba5
This commit is contained in:
parent
f9a3d57a17
commit
bf6fe472fc
@ -100,7 +100,7 @@
|
||||
panelRed.Location = new Point(15, 14);
|
||||
panelRed.Name = "panelRed";
|
||||
panelRed.Size = new Size(38, 44);
|
||||
panelRed.TabIndex = 0;
|
||||
panelRed.TabIndex = 7;
|
||||
//
|
||||
// panelPurple
|
||||
//
|
||||
@ -261,6 +261,7 @@
|
||||
//
|
||||
// labelAdditionalColor
|
||||
//
|
||||
labelAdditionalColor.AllowDrop = true;
|
||||
labelAdditionalColor.BorderStyle = BorderStyle.FixedSingle;
|
||||
labelAdditionalColor.Location = new Point(167, 13);
|
||||
labelAdditionalColor.Name = "labelAdditionalColor";
|
||||
@ -273,6 +274,7 @@
|
||||
//
|
||||
// labelMainColor
|
||||
//
|
||||
labelMainColor.AllowDrop = true;
|
||||
labelMainColor.BorderStyle = BorderStyle.FixedSingle;
|
||||
labelMainColor.Location = new Point(30, 12);
|
||||
labelMainColor.Name = "labelMainColor";
|
||||
@ -332,7 +334,6 @@
|
||||
private CheckBox checkBoxRunWay;
|
||||
private NumericUpDown numericUpDownWeight;
|
||||
private NumericUpDown numericUpDownSpeed;
|
||||
private Panel panelRed;
|
||||
private Panel panelPurple;
|
||||
private Panel panelBlack;
|
||||
private Panel panelGray;
|
||||
@ -349,5 +350,6 @@
|
||||
private Button buttonAdd;
|
||||
private Button buttonCancel;
|
||||
private Panel panelColor;
|
||||
private Panel panelRed;
|
||||
}
|
||||
}
|
@ -44,7 +44,6 @@ namespace AircraftCarrier
|
||||
EventAddAircraft += ev;
|
||||
}
|
||||
}
|
||||
|
||||
private void DrawAircraft()
|
||||
{
|
||||
Bitmap bmp = new(pictureBoxObject.Width, pictureBoxObject.Height);
|
||||
@ -118,13 +117,10 @@ namespace AircraftCarrier
|
||||
((EntityAircraftCarrier)_Aircraft.EntityAircraft).AdditionalColor = (Color)e.Data?.GetData(typeof(Color));
|
||||
DrawAircraft();
|
||||
}
|
||||
|
||||
private void buttonAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
EventAddAircraft?.Invoke(_Aircraft);
|
||||
Close();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user