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