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))