From be22fa43e86153be061d1e4c98c774b3c29a53ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0=BC?= Date: Fri, 26 Apr 2024 16:28:13 +0400 Subject: [PATCH] =?UTF-8?q?=D1=8B=D0=B2=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ckingService.cs => TrainDockingService.cs} | 0 .../FormTrainsCollection.Designer.cs | 55 +++++++++++-------- 2 files changed, 33 insertions(+), 22 deletions(-) rename ProjertTrain/ProjertTrain/CollectionGenericObjects/{CruiserDockingService.cs => TrainDockingService.cs} (100%) diff --git a/ProjertTrain/ProjertTrain/CollectionGenericObjects/CruiserDockingService.cs b/ProjertTrain/ProjertTrain/CollectionGenericObjects/TrainDockingService.cs similarity index 100% rename from ProjertTrain/ProjertTrain/CollectionGenericObjects/CruiserDockingService.cs rename to ProjertTrain/ProjertTrain/CollectionGenericObjects/TrainDockingService.cs diff --git a/ProjertTrain/ProjertTrain/FormTrainsCollection.Designer.cs b/ProjertTrain/ProjertTrain/FormTrainsCollection.Designer.cs index d1d3194..7ff2ba4 100644 --- a/ProjertTrain/ProjertTrain/FormTrainsCollection.Designer.cs +++ b/ProjertTrain/ProjertTrain/FormTrainsCollection.Designer.cs @@ -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);