diff --git a/ElectricLocomotive/ElectricLocomotive/FormLocomotiveCollection.Designer.cs b/ElectricLocomotive/ElectricLocomotive/FormLocomotiveCollection.Designer.cs index d1516da..a921ee7 100644 --- a/ElectricLocomotive/ElectricLocomotive/FormLocomotiveCollection.Designer.cs +++ b/ElectricLocomotive/ElectricLocomotive/FormLocomotiveCollection.Designer.cs @@ -33,11 +33,11 @@ textBoxSetName = new TextBox(); buttonDeleteSet = new Button(); listBoxStorages = new ListBox(); + ButtonAddLocomotive = new Button(); buttonAddSet = new Button(); maskedTextBoxNumber = new MaskedTextBox(); ButtonRefreshCollection = new Button(); ButtonRemoveLocomotive = new Button(); - ButtonAddLocomotive = new Button(); pictureBoxCollection = new PictureBox(); menuStrip = new MenuStrip(); файлToolStripMenuItem = new ToolStripMenuItem(); @@ -81,6 +81,7 @@ buttonDeleteSet.TabIndex = 2; buttonDeleteSet.Text = "Удалить набор"; buttonDeleteSet.UseVisualStyleBackColor = true; + buttonDeleteSet.Click += ButtonRemoveObject_Click; // // listBoxStorages // @@ -92,6 +93,16 @@ listBoxStorages.TabIndex = 1; listBoxStorages.SelectedIndexChanged += listBoxStorages_SelectedIndexChanged; // + // ButtonAddLocomotive + // + ButtonAddLocomotive.Location = new Point(6, 269); + ButtonAddLocomotive.Name = "ButtonAddLocomotive"; + ButtonAddLocomotive.Size = new Size(226, 39); + ButtonAddLocomotive.TabIndex = 0; + ButtonAddLocomotive.Text = "Добавить локомотив"; + ButtonAddLocomotive.UseVisualStyleBackColor = true; + ButtonAddLocomotive.Click += buttonAddLocomotive_Click; + // // buttonAddSet // buttonAddSet.Location = new Point(6, 67); @@ -100,6 +111,7 @@ buttonAddSet.TabIndex = 0; buttonAddSet.Text = "Добавить набор"; buttonAddSet.UseVisualStyleBackColor = true; + buttonAddSet.Click += ButtonAddObject_Click; // // maskedTextBoxNumber // @@ -128,16 +140,6 @@ ButtonRemoveLocomotive.UseVisualStyleBackColor = true; ButtonRemoveLocomotive.Click += buttonRemoveLocomotive_Click; // - // ButtonAddLocomotive - // - ButtonAddLocomotive.Location = new Point(6, 269); - ButtonAddLocomotive.Name = "ButtonAddLocomotive"; - ButtonAddLocomotive.Size = new Size(226, 39); - ButtonAddLocomotive.TabIndex = 0; - ButtonAddLocomotive.Text = "Добавить локомотив"; - ButtonAddLocomotive.UseVisualStyleBackColor = true; - ButtonAddLocomotive.Click += buttonAddLocomotive_Click; - // // pictureBoxCollection // pictureBoxCollection.Location = new Point(6, 24);