From 47d58a0cd52ac46e257ac558d9201bdc820f383f Mon Sep 17 00:00:00 2001 From: ivans Date: Wed, 10 Apr 2024 13:16:38 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=B4=D0=B0=D0=BB=20=D0=BB=D0=B0=D0=B104?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FormPlaneCollection.Designer.cs | 187 +++++++++--------- .../ProjectSeaplane/FormPlaneCollection.cs | 2 + 2 files changed, 95 insertions(+), 94 deletions(-) diff --git a/ProjectSeaplane/ProjectSeaplane/FormPlaneCollection.Designer.cs b/ProjectSeaplane/ProjectSeaplane/FormPlaneCollection.Designer.cs index 5335d2d..0edd49a 100644 --- a/ProjectSeaplane/ProjectSeaplane/FormPlaneCollection.Designer.cs +++ b/ProjectSeaplane/ProjectSeaplane/FormPlaneCollection.Designer.cs @@ -29,6 +29,13 @@ private void InitializeComponent() { groupBoxTools = new GroupBox(); + panelCompanyTools = new Panel(); + buttonAddBasicSeaplane = new Button(); + buttonAddSeaplane = new Button(); + buttonRefresh = new Button(); + maskedTextBox = new MaskedTextBox(); + buttonGoToCheck = new Button(); + buttonDelSeaplane = new Button(); buttonCreateCompany = new Button(); panelStorage = new Panel(); buttonCollectionDel = new Button(); @@ -38,19 +45,12 @@ radioButtonMassive = new RadioButton(); textBoxCollectionName = new TextBox(); labelCollectionName = new Label(); - buttonRefresh = new Button(); - buttonGoToCheck = new Button(); - buttonDelSeaplane = new Button(); - maskedTextBox = new MaskedTextBox(); - buttonAddSeaplane = new Button(); - buttonAddBasicSeaplane = new Button(); СomboBoxSelectorCompany = new ComboBox(); pictureBox = new PictureBox(); - panelCompanyTools = new Panel(); groupBoxTools.SuspendLayout(); + panelCompanyTools.SuspendLayout(); panelStorage.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)pictureBox).BeginInit(); - panelCompanyTools.SuspendLayout(); SuspendLayout(); // // groupBoxTools @@ -67,6 +67,89 @@ groupBoxTools.TabStop = false; groupBoxTools.Text = "Инструменты"; // + // panelCompanyTools + // + panelCompanyTools.Controls.Add(buttonAddBasicSeaplane); + panelCompanyTools.Controls.Add(buttonAddSeaplane); + panelCompanyTools.Controls.Add(buttonRefresh); + panelCompanyTools.Controls.Add(maskedTextBox); + panelCompanyTools.Controls.Add(buttonGoToCheck); + panelCompanyTools.Controls.Add(buttonDelSeaplane); + panelCompanyTools.Dock = DockStyle.Bottom; + panelCompanyTools.Location = new Point(3, 366); + panelCompanyTools.Name = "panelCompanyTools"; + panelCompanyTools.Size = new Size(174, 245); + panelCompanyTools.TabIndex = 9; + // + // buttonAddBasicSeaplane + // + buttonAddBasicSeaplane.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; + buttonAddBasicSeaplane.FlatStyle = FlatStyle.Flat; + buttonAddBasicSeaplane.Location = new Point(0, 12); + buttonAddBasicSeaplane.Name = "buttonAddBasicSeaplane"; + buttonAddBasicSeaplane.Size = new Size(174, 30); + buttonAddBasicSeaplane.TabIndex = 1; + buttonAddBasicSeaplane.Text = "Добавление самолета"; + buttonAddBasicSeaplane.UseVisualStyleBackColor = true; + buttonAddBasicSeaplane.Click += ButtonAddBasicSeaplane_Click; + // + // buttonAddSeaplane + // + buttonAddSeaplane.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; + buttonAddSeaplane.FlatStyle = FlatStyle.Flat; + buttonAddSeaplane.Location = new Point(0, 48); + buttonAddSeaplane.Name = "buttonAddSeaplane"; + buttonAddSeaplane.Size = new Size(174, 43); + buttonAddSeaplane.TabIndex = 2; + buttonAddSeaplane.Text = "Добавление гидросамолета"; + buttonAddSeaplane.UseVisualStyleBackColor = true; + buttonAddSeaplane.Click += ButtonAddSeaplane_Click; + // + // buttonRefresh + // + buttonRefresh.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; + buttonRefresh.FlatStyle = FlatStyle.Flat; + buttonRefresh.Location = new Point(0, 197); + buttonRefresh.Name = "buttonRefresh"; + buttonRefresh.Size = new Size(174, 31); + buttonRefresh.TabIndex = 6; + buttonRefresh.Text = "Обновить"; + buttonRefresh.UseVisualStyleBackColor = true; + buttonRefresh.Click += ButtonRefresh_Click; + // + // maskedTextBox + // + maskedTextBox.Location = new Point(0, 97); + maskedTextBox.Mask = "00"; + maskedTextBox.Name = "maskedTextBox"; + maskedTextBox.Size = new Size(174, 23); + maskedTextBox.TabIndex = 3; + maskedTextBox.ValidatingType = typeof(int); + // + // buttonGoToCheck + // + buttonGoToCheck.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; + buttonGoToCheck.FlatStyle = FlatStyle.Flat; + buttonGoToCheck.Location = new Point(0, 162); + buttonGoToCheck.Name = "buttonGoToCheck"; + buttonGoToCheck.Size = new Size(174, 29); + buttonGoToCheck.TabIndex = 5; + buttonGoToCheck.Text = "Передать на тесты"; + buttonGoToCheck.UseVisualStyleBackColor = true; + buttonGoToCheck.Click += ButtonGoToCheck_Click; + // + // buttonDelSeaplane + // + buttonDelSeaplane.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; + buttonDelSeaplane.FlatStyle = FlatStyle.Flat; + buttonDelSeaplane.Location = new Point(0, 126); + buttonDelSeaplane.Name = "buttonDelSeaplane"; + buttonDelSeaplane.Size = new Size(174, 30); + buttonDelSeaplane.TabIndex = 4; + buttonDelSeaplane.Text = "Удалить самолет"; + buttonDelSeaplane.UseVisualStyleBackColor = true; + buttonDelSeaplane.Click += ButtonnDelSeaplane_Click; + // // buttonCreateCompany // buttonCreateCompany.Location = new Point(3, 334); @@ -159,76 +242,6 @@ labelCollectionName.TabIndex = 0; labelCollectionName.Text = "Название коллекции:"; // - // buttonRefresh - // - buttonRefresh.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; - buttonRefresh.FlatStyle = FlatStyle.Flat; - buttonRefresh.Location = new Point(0, 197); - buttonRefresh.Name = "buttonRefresh"; - buttonRefresh.Size = new Size(174, 31); - buttonRefresh.TabIndex = 6; - buttonRefresh.Text = "Обновить"; - buttonRefresh.UseVisualStyleBackColor = true; - buttonRefresh.Click += ButtonRefresh_Click; - // - // buttonGoToCheck - // - buttonGoToCheck.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; - buttonGoToCheck.FlatStyle = FlatStyle.Flat; - buttonGoToCheck.Location = new Point(0, 162); - buttonGoToCheck.Name = "buttonGoToCheck"; - buttonGoToCheck.Size = new Size(174, 29); - buttonGoToCheck.TabIndex = 5; - buttonGoToCheck.Text = "Передать на тесты"; - buttonGoToCheck.UseVisualStyleBackColor = true; - buttonGoToCheck.Click += ButtonGoToCheck_Click; - // - // buttonDelSeaplane - // - buttonDelSeaplane.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; - buttonDelSeaplane.FlatStyle = FlatStyle.Flat; - buttonDelSeaplane.Location = new Point(0, 126); - buttonDelSeaplane.Name = "buttonDelSeaplane"; - buttonDelSeaplane.Size = new Size(174, 30); - buttonDelSeaplane.TabIndex = 4; - buttonDelSeaplane.Text = "Удалить самолет"; - buttonDelSeaplane.UseVisualStyleBackColor = true; - buttonDelSeaplane.Click += ButtonnDelSeaplane_Click; - // - // maskedTextBox - // - maskedTextBox.Enabled = false; - maskedTextBox.Location = new Point(0, 97); - maskedTextBox.Mask = "00"; - maskedTextBox.Name = "maskedTextBox"; - maskedTextBox.Size = new Size(174, 23); - maskedTextBox.TabIndex = 3; - maskedTextBox.ValidatingType = typeof(int); - // - // buttonAddSeaplane - // - buttonAddSeaplane.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; - buttonAddSeaplane.FlatStyle = FlatStyle.Flat; - buttonAddSeaplane.Location = new Point(0, 48); - buttonAddSeaplane.Name = "buttonAddSeaplane"; - buttonAddSeaplane.Size = new Size(174, 43); - buttonAddSeaplane.TabIndex = 2; - buttonAddSeaplane.Text = "Добавление гидросамолета"; - buttonAddSeaplane.UseVisualStyleBackColor = true; - buttonAddSeaplane.Click += ButtonAddSeaplane_Click; - // - // buttonAddBasicSeaplane - // - buttonAddBasicSeaplane.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; - buttonAddBasicSeaplane.FlatStyle = FlatStyle.Flat; - buttonAddBasicSeaplane.Location = new Point(0, 12); - buttonAddBasicSeaplane.Name = "buttonAddBasicSeaplane"; - buttonAddBasicSeaplane.Size = new Size(174, 30); - buttonAddBasicSeaplane.TabIndex = 1; - buttonAddBasicSeaplane.Text = "Добавление самолета"; - buttonAddBasicSeaplane.UseVisualStyleBackColor = true; - buttonAddBasicSeaplane.Click += ButtonAddBasicSeaplane_Click; - // // СomboBoxSelectorCompany // СomboBoxSelectorCompany.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; @@ -249,20 +262,6 @@ pictureBox.TabIndex = 1; pictureBox.TabStop = false; // - // panelCompanyTools - // - panelCompanyTools.Controls.Add(buttonAddBasicSeaplane); - panelCompanyTools.Controls.Add(buttonAddSeaplane); - panelCompanyTools.Controls.Add(buttonRefresh); - panelCompanyTools.Controls.Add(maskedTextBox); - panelCompanyTools.Controls.Add(buttonGoToCheck); - panelCompanyTools.Controls.Add(buttonDelSeaplane); - panelCompanyTools.Dock = DockStyle.Bottom; - panelCompanyTools.Location = new Point(3, 374); - panelCompanyTools.Name = "panelCompanyTools"; - panelCompanyTools.Size = new Size(174, 237); - panelCompanyTools.TabIndex = 9; - // // FormPlaneCollection // AutoScaleDimensions = new SizeF(7F, 15F); @@ -273,11 +272,11 @@ Name = "FormPlaneCollection"; Text = "Коллекция самолетов"; groupBoxTools.ResumeLayout(false); + panelCompanyTools.ResumeLayout(false); + panelCompanyTools.PerformLayout(); panelStorage.ResumeLayout(false); panelStorage.PerformLayout(); ((System.ComponentModel.ISupportInitialize)pictureBox).EndInit(); - panelCompanyTools.ResumeLayout(false); - panelCompanyTools.PerformLayout(); ResumeLayout(false); } diff --git a/ProjectSeaplane/ProjectSeaplane/FormPlaneCollection.cs b/ProjectSeaplane/ProjectSeaplane/FormPlaneCollection.cs index c0ab1af..e32a9e9 100644 --- a/ProjectSeaplane/ProjectSeaplane/FormPlaneCollection.cs +++ b/ProjectSeaplane/ProjectSeaplane/FormPlaneCollection.cs @@ -278,4 +278,6 @@ public partial class FormPlaneCollection : Form RerfreshListBoxItems(); } + + }