diff --git a/ComputersShop/FormComponents.Designer.cs b/ComputersShop/FormComponents.Designer.cs index a09f5ad..1f4465f 100644 --- a/ComputersShop/FormComponents.Designer.cs +++ b/ComputersShop/FormComponents.Designer.cs @@ -98,6 +98,7 @@ this.Controls.Add(this.dataGridView); this.Name = "FormComponents"; this.Text = "Form1"; + this.Load += new System.EventHandler(this.FormComponents_Load); ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit(); this.ResumeLayout(false); diff --git a/ComputersShop/FormComputers.Designer.cs b/ComputersShop/FormComputers.Designer.cs index 565be6a..cf96b38 100644 --- a/ComputersShop/FormComputers.Designer.cs +++ b/ComputersShop/FormComputers.Designer.cs @@ -97,6 +97,7 @@ this.Controls.Add(this.dataGridView); this.Name = "FormComputers"; this.Text = "FormComputers"; + this.Load += new System.EventHandler(this.FormComputers_Load); ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit(); this.ResumeLayout(false); diff --git a/ComputersShop/FormComputers.cs b/ComputersShop/FormComputers.cs index da9b09f..e550f0a 100644 --- a/ComputersShop/FormComputers.cs +++ b/ComputersShop/FormComputers.cs @@ -24,7 +24,7 @@ namespace ComputersShop _logic = logic; } - private void FormDocuments_Load(object sender, EventArgs e) + private void FormComputers_Load(object sender, EventArgs e) { LoadData(); }