Финальные правки.
This commit is contained in:
parent
a740b44232
commit
2d2c30de53
@ -24,6 +24,7 @@ namespace Airbus
|
|||||||
//объект от коллекции карт
|
//объект от коллекции карт
|
||||||
private readonly MapsCollection _mapsCollection;
|
private readonly MapsCollection _mapsCollection;
|
||||||
|
|
||||||
|
//конструктор
|
||||||
public FormMapWithSetPlanes()
|
public FormMapWithSetPlanes()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
@ -100,6 +101,7 @@ namespace Airbus
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//отрисовка добавленного объекта в хранилище
|
||||||
private void AddPlane(DrawningAirbus plane)
|
private void AddPlane(DrawningAirbus plane)
|
||||||
{
|
{
|
||||||
if (listBoxMaps.SelectedIndex == -1)
|
if (listBoxMaps.SelectedIndex == -1)
|
||||||
|
16
Airbus/Airbus/FormPlaneConfig.Designer.cs
generated
16
Airbus/Airbus/FormPlaneConfig.Designer.cs
generated
@ -212,11 +212,16 @@
|
|||||||
// numericUpDownWeight
|
// numericUpDownWeight
|
||||||
//
|
//
|
||||||
this.numericUpDownWeight.Location = new System.Drawing.Point(114, 97);
|
this.numericUpDownWeight.Location = new System.Drawing.Point(114, 97);
|
||||||
|
this.numericUpDownWeight.Maximum = new decimal(new int[] {
|
||||||
|
1500,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0});
|
||||||
this.numericUpDownWeight.Name = "numericUpDownWeight";
|
this.numericUpDownWeight.Name = "numericUpDownWeight";
|
||||||
this.numericUpDownWeight.Size = new System.Drawing.Size(103, 27);
|
this.numericUpDownWeight.Size = new System.Drawing.Size(103, 27);
|
||||||
this.numericUpDownWeight.TabIndex = 3;
|
this.numericUpDownWeight.TabIndex = 3;
|
||||||
this.numericUpDownWeight.Value = new decimal(new int[] {
|
this.numericUpDownWeight.Value = new decimal(new int[] {
|
||||||
100,
|
750,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
0});
|
0});
|
||||||
@ -233,11 +238,16 @@
|
|||||||
// numericUpDownSpeed
|
// numericUpDownSpeed
|
||||||
//
|
//
|
||||||
this.numericUpDownSpeed.Location = new System.Drawing.Point(114, 37);
|
this.numericUpDownSpeed.Location = new System.Drawing.Point(114, 37);
|
||||||
|
this.numericUpDownSpeed.Maximum = new decimal(new int[] {
|
||||||
|
2000,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0});
|
||||||
this.numericUpDownSpeed.Name = "numericUpDownSpeed";
|
this.numericUpDownSpeed.Name = "numericUpDownSpeed";
|
||||||
this.numericUpDownSpeed.Size = new System.Drawing.Size(103, 27);
|
this.numericUpDownSpeed.Size = new System.Drawing.Size(103, 27);
|
||||||
this.numericUpDownSpeed.TabIndex = 1;
|
this.numericUpDownSpeed.TabIndex = 1;
|
||||||
this.numericUpDownSpeed.Value = new decimal(new int[] {
|
this.numericUpDownSpeed.Value = new decimal(new int[] {
|
||||||
100,
|
1000,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
0});
|
0});
|
||||||
@ -282,7 +292,7 @@
|
|||||||
this.labelAddColor.TabIndex = 3;
|
this.labelAddColor.TabIndex = 3;
|
||||||
this.labelAddColor.Text = "Доп. цвет";
|
this.labelAddColor.Text = "Доп. цвет";
|
||||||
this.labelAddColor.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
this.labelAddColor.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
this.labelAddColor.DragDrop += new System.Windows.Forms.DragEventHandler(this.labelAddColor_DragDrop);
|
this.labelAddColor.DragDrop += new System.Windows.Forms.DragEventHandler(this.LabelAddColor_DragDrop);
|
||||||
this.labelAddColor.DragEnter += new System.Windows.Forms.DragEventHandler(this.LabelAddColor_DragEnter);
|
this.labelAddColor.DragEnter += new System.Windows.Forms.DragEventHandler(this.LabelAddColor_DragEnter);
|
||||||
//
|
//
|
||||||
// labelBaseColor
|
// labelBaseColor
|
||||||
|
@ -12,7 +12,7 @@ namespace Airbus
|
|||||||
{
|
{
|
||||||
public partial class FormPlaneConfig : Form
|
public partial class FormPlaneConfig : Form
|
||||||
{
|
{
|
||||||
//переменная-выбранная машина
|
//переменная-выбранный самолёт
|
||||||
DrawningAirbus _plane = null;
|
DrawningAirbus _plane = null;
|
||||||
|
|
||||||
//событие
|
//событие
|
||||||
@ -138,7 +138,7 @@ namespace Airbus
|
|||||||
}
|
}
|
||||||
|
|
||||||
//принимаем дополнительный цвет
|
//принимаем дополнительный цвет
|
||||||
private void labelAddColor_DragDrop(object sender, DragEventArgs e)
|
private void LabelAddColor_DragDrop(object sender, DragEventArgs e)
|
||||||
{
|
{
|
||||||
if (_plane != null && _plane is DrawningSuperAirbus airbus)
|
if (_plane != null && _plane is DrawningSuperAirbus airbus)
|
||||||
{
|
{
|
||||||
@ -153,9 +153,6 @@ namespace Airbus
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//добавление машины
|
//добавление машины
|
||||||
private void ButtonAddObject_Click(object sender, EventArgs e)
|
private void ButtonAddObject_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user