diff --git a/ProjectElectroTrans/FormTransConfig.Designer.cs b/ProjectElectroTrans/FormTransConfig.Designer.cs index 63ebe44..e3199d2 100644 --- a/ProjectElectroTrans/FormTransConfig.Designer.cs +++ b/ProjectElectroTrans/FormTransConfig.Designer.cs @@ -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; diff --git a/ProjectElectroTrans/FormTransConfig.cs b/ProjectElectroTrans/FormTransConfig.cs index 4a677eb..6ea77d1 100644 --- a/ProjectElectroTrans/FormTransConfig.cs +++ b/ProjectElectroTrans/FormTransConfig.cs @@ -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; }