From 357e9bb315aaf27d93515c2f33b0c7a0378d1fc9 Mon Sep 17 00:00:00 2001 From: antoc0der <1@DESKTOP-K1L8ND3> Date: Fri, 15 Mar 2024 22:23:58 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ProjectFlowerShop/FormFlower.Designer.cs | 5 ----- ProjectFlowerShop/FormFlower.cs | 10 ---------- ProjectFlowerShop/FormFlowerComponent.Designer.cs | 1 - ProjectFlowerShop/FormFlowerComponent.cs | 5 ----- 4 files changed, 21 deletions(-) diff --git a/ProjectFlowerShop/FormFlower.Designer.cs b/ProjectFlowerShop/FormFlower.Designer.cs index aa3790a..4573ebf 100644 --- a/ProjectFlowerShop/FormFlower.Designer.cs +++ b/ProjectFlowerShop/FormFlower.Designer.cs @@ -72,7 +72,6 @@ textBoxName.Name = "textBoxName"; textBoxName.Size = new Size(204, 27); textBoxName.TabIndex = 2; - textBoxName.TextChanged += textBox1_TextChanged; // // textBoxPrice // @@ -145,7 +144,6 @@ dataGridView.RowTemplate.Height = 29; dataGridView.Size = new Size(432, 262); dataGridView.TabIndex = 0; - dataGridView.CellContentClick += dataGridView_CellContentClick; // // Save // @@ -208,7 +206,6 @@ Controls.Add(textBoxName); Controls.Add(labelPrice); Controls.Add(labelName); - // Name = "FormProduct"; Text = "Изделие"; Load += FormProduct_Load; groupBoxComponent.ResumeLayout(false); @@ -231,10 +228,8 @@ private DataGridView dataGridView; private Button Save; private Button buttonCancel; - // private DataGridViewTextBoxColumn Id; private DataGridViewTextBoxColumn Name; private DataGridViewTextBoxColumn Number; - //private DataGridViewTextBoxColumn Id; private DataGridViewTextBoxColumn Component; private DataGridViewTextBoxColumn idd; private DataGridViewTextBoxColumn Numbers; diff --git a/ProjectFlowerShop/FormFlower.cs b/ProjectFlowerShop/FormFlower.cs index 40ad362..6ee4831 100644 --- a/ProjectFlowerShop/FormFlower.cs +++ b/ProjectFlowerShop/FormFlower.cs @@ -31,11 +31,6 @@ namespace ProjectFlowerShop _flowerComponents = new Dictionary(); } - private void textBox1_TextChanged(object sender, EventArgs e) - { - - } - private void FormProduct_Load(object sender, EventArgs e) { if (_id.HasValue) @@ -88,11 +83,6 @@ namespace ProjectFlowerShop } } - private void dataGridView_CellContentClick(object sender, DataGridViewCellEventArgs e) - { - - } - private void buttonAdd_Click(object sender, EventArgs e) { var service = Program.ServiceProvider?.GetService(typeof(FormFlowerComponent)); diff --git a/ProjectFlowerShop/FormFlowerComponent.Designer.cs b/ProjectFlowerShop/FormFlowerComponent.Designer.cs index 334204e..f509bbd 100644 --- a/ProjectFlowerShop/FormFlowerComponent.Designer.cs +++ b/ProjectFlowerShop/FormFlowerComponent.Designer.cs @@ -102,7 +102,6 @@ Controls.Add(labelComponent); Name = "FormFlowerComponent"; Text = "Цветы-компоненты"; - Load += FormProductComponent_Load; ResumeLayout(false); PerformLayout(); } diff --git a/ProjectFlowerShop/FormFlowerComponent.cs b/ProjectFlowerShop/FormFlowerComponent.cs index 697ece2..cd55022 100644 --- a/ProjectFlowerShop/FormFlowerComponent.cs +++ b/ProjectFlowerShop/FormFlowerComponent.cs @@ -65,11 +65,6 @@ namespace ProjectFlowerShop } } - private void FormProductComponent_Load(object sender, EventArgs e) - { - - } - private void buttonSave_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(textBoxNumber.Text))