From a70cb1d78204930997d8f95a7111258a0ce210a8 Mon Sep 17 00:00:00 2001 From: 1yuee Date: Tue, 7 Feb 2023 11:02:43 +0400 Subject: [PATCH] fix --- Confectionery/FormComponents.Designer.cs | 1 + Confectionery/FormMain.Designer.cs | 1 + Confectionery/FormMain.cs | 3 ++- Confectionery/FormPastry.Designer.cs | 1 + Confectionery/FormViewPastry.Designer.cs | 1 + 5 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Confectionery/FormComponents.Designer.cs b/Confectionery/FormComponents.Designer.cs index dd31844..967f22a 100644 --- a/Confectionery/FormComponents.Designer.cs +++ b/Confectionery/FormComponents.Designer.cs @@ -104,6 +104,7 @@ this.Controls.Add(this.dataGridView); this.Name = "FormComponents"; this.Text = "Редактирование компонентов"; + this.Load += new System.EventHandler(this.FormComponents_Load); ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit(); this.ResumeLayout(false); diff --git a/Confectionery/FormMain.Designer.cs b/Confectionery/FormMain.Designer.cs index 3522d86..c90ca46 100644 --- a/Confectionery/FormMain.Designer.cs +++ b/Confectionery/FormMain.Designer.cs @@ -157,6 +157,7 @@ this.MainMenuStrip = this.menuStrip1; this.Name = "FormMain"; this.Text = "Кондитерская"; + this.Load += new System.EventHandler(this.FormMain_Load); this.menuStrip1.ResumeLayout(false); this.menuStrip1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit(); diff --git a/Confectionery/FormMain.cs b/Confectionery/FormMain.cs index b75e953..190621c 100644 --- a/Confectionery/FormMain.cs +++ b/Confectionery/FormMain.cs @@ -29,7 +29,8 @@ namespace ConfectioneryView if (list != null) { dataGridView.DataSource = list; - dataGridView.Columns["Id"].Visible = false; + dataGridView.Columns["Id"].HeaderText = " "; + dataGridView.Columns["PastryId"].Visible = false; dataGridView.Columns["PastryName"].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill; } diff --git a/Confectionery/FormPastry.Designer.cs b/Confectionery/FormPastry.Designer.cs index ba07aee..1c6ecaf 100644 --- a/Confectionery/FormPastry.Designer.cs +++ b/Confectionery/FormPastry.Designer.cs @@ -207,6 +207,7 @@ this.Controls.Add(this.label1); this.Name = "FormPastry"; this.Text = "Кондитерское изделие"; + this.Load += new System.EventHandler(this.FormPastry_Load); this.groupBox1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit(); this.ResumeLayout(false); diff --git a/Confectionery/FormViewPastry.Designer.cs b/Confectionery/FormViewPastry.Designer.cs index 3417617..67d3480 100644 --- a/Confectionery/FormViewPastry.Designer.cs +++ b/Confectionery/FormViewPastry.Designer.cs @@ -104,6 +104,7 @@ this.Controls.Add(this.dataGridView); this.Name = "FormViewPastry"; this.Text = "Редактирование изделий"; + this.Load += new System.EventHandler(this.FormViewPastry_Load); ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit(); this.ResumeLayout(false);