From 51230648ff11585438e4c48c1710853092fa74a0 Mon Sep 17 00:00:00 2001 From: tellsense Date: Tue, 7 May 2024 21:14:39 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=BE=D0=B5=D0=BA=D1=82=20=D0=B3?= =?UTF-8?q?=D0=BE=D1=82=D0=BE=D0=B2.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SUBD/SUBD/Forms/FormComponent.Designer.cs | 5 +- SUBD/SUBD/Forms/FormComponents.Designer.cs | 86 +++++++++++----------- 2 files changed, 48 insertions(+), 43 deletions(-) diff --git a/SUBD/SUBD/Forms/FormComponent.Designer.cs b/SUBD/SUBD/Forms/FormComponent.Designer.cs index f3c2c9d..33ff2c2 100644 --- a/SUBD/SUBD/Forms/FormComponent.Designer.cs +++ b/SUBD/SUBD/Forms/FormComponent.Designer.cs @@ -53,6 +53,7 @@ buttonSave.TabIndex = 1; buttonSave.Text = "Сохранить"; buttonSave.UseVisualStyleBackColor = true; + buttonSave.Click += this.ButtonSave_Click; // // textBoxName // @@ -63,7 +64,7 @@ // // textBoxCost // - textBoxCost.Location = new Point(89, 80); + textBoxCost.Location = new Point(89, 59); textBoxCost.Name = "textBoxCost"; textBoxCost.Size = new Size(218, 23); textBoxCost.TabIndex = 3; @@ -80,7 +81,7 @@ // labelCost // labelCost.AutoSize = true; - labelCost.Location = new Point(12, 80); + labelCost.Location = new Point(12, 62); labelCost.Name = "labelCost"; labelCost.Size = new Size(38, 15); labelCost.TabIndex = 5; diff --git a/SUBD/SUBD/Forms/FormComponents.Designer.cs b/SUBD/SUBD/Forms/FormComponents.Designer.cs index b636662..f153460 100644 --- a/SUBD/SUBD/Forms/FormComponents.Designer.cs +++ b/SUBD/SUBD/Forms/FormComponents.Designer.cs @@ -28,49 +28,53 @@ /// private void InitializeComponent() { - button1 = new Button(); - button2 = new Button(); - button3 = new Button(); - button4 = new Button(); + ButtonAdd = new Button(); + ButtonUpd = new Button(); + ButtonDel = new Button(); + ButtonRef = new Button(); dataGridView = new DataGridView(); ((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit(); SuspendLayout(); // - // button1 + // ButtonAdd // - button1.Location = new Point(430, 24); - button1.Name = "button1"; - button1.Size = new Size(109, 68); - button1.TabIndex = 0; - button1.Text = "button1"; - button1.UseVisualStyleBackColor = true; + ButtonAdd.Location = new Point(430, 24); + ButtonAdd.Name = "ButtonAdd"; + ButtonAdd.Size = new Size(109, 68); + ButtonAdd.TabIndex = 0; + ButtonAdd.Text = "Добавить"; + ButtonAdd.UseVisualStyleBackColor = true; + ButtonAdd.Click += ButtonAdd_Click; // - // button2 + // ButtonUpd // - button2.Location = new Point(430, 98); - button2.Name = "button2"; - button2.Size = new Size(109, 68); - button2.TabIndex = 1; - button2.Text = "button2"; - button2.UseVisualStyleBackColor = true; + ButtonUpd.Location = new Point(430, 98); + ButtonUpd.Name = "ButtonUpd"; + ButtonUpd.Size = new Size(109, 68); + ButtonUpd.TabIndex = 1; + ButtonUpd.Text = "Изменить"; + ButtonUpd.UseVisualStyleBackColor = true; + ButtonUpd.Click += ButtonUpd_Click; // - // button3 + // ButtonDel // - button3.Location = new Point(430, 172); - button3.Name = "button3"; - button3.Size = new Size(109, 68); - button3.TabIndex = 2; - button3.Text = "button3"; - button3.UseVisualStyleBackColor = true; + ButtonDel.Location = new Point(430, 172); + ButtonDel.Name = "ButtonDel"; + ButtonDel.Size = new Size(109, 68); + ButtonDel.TabIndex = 2; + ButtonDel.Text = "Удалить"; + ButtonDel.UseVisualStyleBackColor = true; + ButtonDel.Click += ButtonDel_Click; // - // button4 + // ButtonRef // - button4.Location = new Point(430, 246); - button4.Name = "button4"; - button4.Size = new Size(109, 68); - button4.TabIndex = 3; - button4.Text = "button4"; - button4.UseVisualStyleBackColor = true; + ButtonRef.Location = new Point(430, 246); + ButtonRef.Name = "ButtonRef"; + ButtonRef.Size = new Size(109, 68); + ButtonRef.TabIndex = 3; + ButtonRef.Text = "Обновить"; + ButtonRef.UseVisualStyleBackColor = true; + ButtonRef.Click += ButtonRef_Click; // // dataGridView // @@ -86,12 +90,12 @@ AutoScaleMode = AutoScaleMode.Font; ClientSize = new Size(551, 450); Controls.Add(dataGridView); - Controls.Add(button4); - Controls.Add(button3); - Controls.Add(button2); - Controls.Add(button1); + Controls.Add(ButtonRef); + Controls.Add(ButtonDel); + Controls.Add(ButtonUpd); + Controls.Add(ButtonAdd); Name = "FormComponents"; - Text = "FormComponents"; + Text = "Компоненты"; Load += FormComponents_Load; ((System.ComponentModel.ISupportInitialize)dataGridView).EndInit(); ResumeLayout(false); @@ -99,10 +103,10 @@ #endregion - private Button button1; - private Button button2; - private Button button3; - private Button button4; + private Button ButtonAdd; + private Button ButtonUpd; + private Button ButtonDel; + private Button ButtonRef; private DataGridView dataGridView; } } \ No newline at end of file