lab 5 fix

This commit is contained in:
LivelyPuer 2024-04-10 21:07:50 +04:00
parent 25e8f077f6
commit 9b3cbb5868
2 changed files with 3 additions and 8 deletions

View File

@ -43,7 +43,6 @@
panelRed = new Panel();
checkBoxBulldozerDump = new CheckBox();
checkBoxSupport = new CheckBox();
checkBoxBucket = new CheckBox();
numericUpDownWeight = new NumericUpDown();
numericUpDownSpeed = new NumericUpDown();
labelWeight = new Label();
@ -73,7 +72,6 @@
groupBoxConfig.Controls.Add(groupBoxColors);
groupBoxConfig.Controls.Add(checkBoxBulldozerDump);
groupBoxConfig.Controls.Add(checkBoxSupport);
groupBoxConfig.Controls.Add(checkBoxBucket);
groupBoxConfig.Controls.Add(numericUpDownWeight);
groupBoxConfig.Controls.Add(numericUpDownSpeed);
groupBoxConfig.Controls.Add(labelWeight);
@ -214,9 +212,7 @@
checkBoxSupport.TabIndex = 7;
checkBoxSupport.Text = "Признак наличие батарей ";
checkBoxSupport.UseVisualStyleBackColor = true;
//
// checkBoxBucket
//
numericUpDownWeight.Location = new Point(91, 54);
numericUpDownWeight.Maximum = new decimal(new int[] { 1000, 0, 0, 0 });
numericUpDownWeight.Minimum = new decimal(new int[] { 100, 0, 0, 0 });
@ -350,7 +346,7 @@
Controls.Add(buttonAdd);
Controls.Add(panelObject);
Controls.Add(groupBoxConfig);
Name = "FormExcavatorConfig";
Name = "FormTransConfig";
Text = "Создание объекта";
groupBoxConfig.ResumeLayout(false);
groupBoxConfig.PerformLayout();
@ -377,7 +373,6 @@
private Label labelSpeed;
private CheckBox checkBoxBulldozerDump;
private CheckBox checkBoxSupport;
private CheckBox checkBoxBucket;
private GroupBox groupBoxColors;
private Panel panelPurple;
private Panel panelYellow;

View File

@ -102,7 +102,7 @@ namespace ProjectElectroTrans
case "labelModifiedObject":
_trans = new DrawingElectroTrans((int)numericUpDownSpeed.Value, (double)numericUpDownWeight.Value,
Color.White,
Color.Black, checkBoxBucket.Checked,
Color.Black, checkBoxBulldozerDump.Checked,
checkBoxSupport.Checked);
break;
}