Eliseev E.E. LabWork05 #6

Merged
eegov merged 11 commits from LabWork05 into LabWork04 2022-11-07 10:02:56 +04:00
3 changed files with 17 additions and 8 deletions
Showing only changes of commit 2d2c30de53 - Show all commits

View File

@ -24,6 +24,7 @@ namespace Airbus
//объект от коллекции карт
private readonly MapsCollection _mapsCollection;
//конструктор
public FormMapWithSetPlanes()
{
InitializeComponent();
@ -100,6 +101,7 @@ namespace Airbus
}
}
//отрисовка добавленного объекта в хранилище
private void AddPlane(DrawningAirbus plane)
{
if (listBoxMaps.SelectedIndex == -1)

View File

@ -212,11 +212,16 @@
// numericUpDownWeight
//
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.Size = new System.Drawing.Size(103, 27);
this.numericUpDownWeight.TabIndex = 3;
this.numericUpDownWeight.Value = new decimal(new int[] {
100,
750,
0,
0,
0});
@ -233,11 +238,16 @@
// numericUpDownSpeed
//
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.Size = new System.Drawing.Size(103, 27);
this.numericUpDownSpeed.TabIndex = 1;
this.numericUpDownSpeed.Value = new decimal(new int[] {
100,
1000,
0,
0,
0});
@ -282,7 +292,7 @@
this.labelAddColor.TabIndex = 3;
this.labelAddColor.Text = "Доп. цвет";
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);
//
// labelBaseColor

View File

@ -12,7 +12,7 @@ namespace Airbus
{
public partial class FormPlaneConfig : Form
{
//переменная-выбранная машина
//переменная-выбранный самолёт
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)
{
@ -153,9 +153,6 @@ namespace Airbus
}
}
//добавление машины
private void ButtonAddObject_Click(object sender, EventArgs e)
{