This commit is contained in:
Максим 2024-04-26 16:28:13 +04:00
parent af2710431b
commit be22fa43e8
2 changed files with 33 additions and 22 deletions

View File

@ -51,28 +51,32 @@
groupBoxTools.Controls.Add(ButtonAddTrain);
groupBoxTools.Controls.Add(comboBoxSelectorCompany);
groupBoxTools.Dock = DockStyle.Right;
groupBoxTools.Location = new Point(596, 0);
groupBoxTools.Location = new Point(522, 0);
groupBoxTools.Margin = new Padding(3, 2, 3, 2);
groupBoxTools.Name = "groupBoxTools";
groupBoxTools.Size = new Size(222, 574);
groupBoxTools.Padding = new Padding(3, 2, 3, 2);
groupBoxTools.Size = new Size(194, 430);
groupBoxTools.TabIndex = 0;
groupBoxTools.TabStop = false;
groupBoxTools.Text = "инструменты";
//
// maskedTextBoxPosision
//
maskedTextBoxPosision.Location = new Point(20, 229);
maskedTextBoxPosision.Location = new Point(18, 172);
maskedTextBoxPosision.Margin = new Padding(3, 2, 3, 2);
maskedTextBoxPosision.Mask = "00";
maskedTextBoxPosision.Name = "maskedTextBoxPosision";
maskedTextBoxPosision.Size = new Size(186, 27);
maskedTextBoxPosision.Size = new Size(163, 23);
maskedTextBoxPosision.TabIndex = 2;
maskedTextBoxPosision.ValidatingType = typeof(int);
//
// buttonRefresh
//
buttonRefresh.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
buttonRefresh.Location = new Point(20, 479);
buttonRefresh.Location = new Point(18, 359);
buttonRefresh.Margin = new Padding(3, 2, 3, 2);
buttonRefresh.Name = "buttonRefresh";
buttonRefresh.Size = new Size(186, 40);
buttonRefresh.Size = new Size(163, 30);
buttonRefresh.TabIndex = 5;
buttonRefresh.Text = "обновить";
buttonRefresh.UseVisualStyleBackColor = true;
@ -81,9 +85,10 @@
// buttonGetToTest
//
buttonGetToTest.Anchor = AnchorStyles.Right;
buttonGetToTest.Location = new Point(20, 366);
buttonGetToTest.Location = new Point(18, 274);
buttonGetToTest.Margin = new Padding(3, 2, 3, 2);
buttonGetToTest.Name = "buttonGetToTest";
buttonGetToTest.Size = new Size(186, 40);
buttonGetToTest.Size = new Size(163, 30);
buttonGetToTest.TabIndex = 4;
buttonGetToTest.Text = "передать на тесты";
buttonGetToTest.UseVisualStyleBackColor = true;
@ -92,22 +97,24 @@
// ButtonRemoveTrain
//
ButtonRemoveTrain.Anchor = AnchorStyles.Right;
ButtonRemoveTrain.Location = new Point(20, 271);
ButtonRemoveTrain.Location = new Point(18, 203);
ButtonRemoveTrain.Margin = new Padding(3, 2, 3, 2);
ButtonRemoveTrain.Name = "ButtonRemoveTrain";
ButtonRemoveTrain.Size = new Size(186, 40);
ButtonRemoveTrain.Size = new Size(163, 30);
ButtonRemoveTrain.TabIndex = 3;
ButtonRemoveTrain.Text = "удалить крейсер";
ButtonRemoveTrain.Text = "удалить поезд";
ButtonRemoveTrain.UseVisualStyleBackColor = true;
ButtonRemoveTrain.Click += ButtonRemoveTrain_Click;
//
// ButtonAddElectroTrain
//
ButtonAddElectroTrain.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
ButtonAddElectroTrain.Location = new Point(20, 152);
ButtonAddElectroTrain.Location = new Point(18, 114);
ButtonAddElectroTrain.Margin = new Padding(3, 2, 3, 2);
ButtonAddElectroTrain.Name = "ButtonAddElectroTrain";
ButtonAddElectroTrain.Size = new Size(186, 50);
ButtonAddElectroTrain.Size = new Size(163, 38);
ButtonAddElectroTrain.TabIndex = 2;
ButtonAddElectroTrain.Text = "добваление военного крейсера";
ButtonAddElectroTrain.Text = "добваление электро-поеда";
ButtonAddElectroTrain.UseVisualStyleBackColor = true;
ButtonAddElectroTrain.Click += ButtonAddElectroTrain_Click;
//
@ -115,11 +122,12 @@
//
ButtonAddTrain.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
ButtonAddTrain.BackgroundImageLayout = ImageLayout.Center;
ButtonAddTrain.Location = new Point(20, 106);
ButtonAddTrain.Location = new Point(18, 80);
ButtonAddTrain.Margin = new Padding(3, 2, 3, 2);
ButtonAddTrain.Name = "ButtonAddTrain";
ButtonAddTrain.Size = new Size(186, 40);
ButtonAddTrain.Size = new Size(163, 30);
ButtonAddTrain.TabIndex = 1;
ButtonAddTrain.Text = "добваление крейсера";
ButtonAddTrain.Text = "добваление поезда";
ButtonAddTrain.UseVisualStyleBackColor = true;
ButtonAddTrain.Click += ButtonAddTrain_Click;
//
@ -128,9 +136,10 @@
comboBoxSelectorCompany.DropDownStyle = ComboBoxStyle.DropDownList;
comboBoxSelectorCompany.FormattingEnabled = true;
comboBoxSelectorCompany.Items.AddRange(new object[] { "хранилище" });
comboBoxSelectorCompany.Location = new Point(20, 26);
comboBoxSelectorCompany.Location = new Point(18, 20);
comboBoxSelectorCompany.Margin = new Padding(3, 2, 3, 2);
comboBoxSelectorCompany.Name = "comboBoxSelectorCompany";
comboBoxSelectorCompany.Size = new Size(186, 28);
comboBoxSelectorCompany.Size = new Size(163, 23);
comboBoxSelectorCompany.TabIndex = 0;
comboBoxSelectorCompany.SelectedIndexChanged += comboBoxSelectorCompany_SelectedIndexChanged_1;
//
@ -138,18 +147,20 @@
//
pictureBoxTrain.Dock = DockStyle.Fill;
pictureBoxTrain.Location = new Point(0, 0);
pictureBoxTrain.Margin = new Padding(3, 2, 3, 2);
pictureBoxTrain.Name = "pictureBoxTrain";
pictureBoxTrain.Size = new Size(596, 574);
pictureBoxTrain.Size = new Size(522, 430);
pictureBoxTrain.TabIndex = 1;
pictureBoxTrain.TabStop = false;
//
// FormTrainsCollection
//
AutoScaleDimensions = new SizeF(8F, 20F);
AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(818, 574);
ClientSize = new Size(716, 430);
Controls.Add(pictureBoxTrain);
Controls.Add(groupBoxTools);
Margin = new Padding(3, 2, 3, 2);
Name = "FormTrainsCollection";
Text = "FormTrainsCollection";
groupBoxTools.ResumeLayout(false);