Лаба 1. Правки.

This commit is contained in:
Андрей Байгулов 2024-02-15 21:39:35 +04:00
parent 6898b826c6
commit 2695eacba8
7 changed files with 6 additions and 2 deletions

View File

@ -101,6 +101,7 @@
Controls.Add(ButtonSave); Controls.Add(ButtonSave);
Name = "FormComponent"; Name = "FormComponent";
Text = "Компонент"; Text = "Компонент";
Load += FormComponent_Load;
ResumeLayout(false); ResumeLayout(false);
PerformLayout(); PerformLayout();
} }

View File

@ -92,7 +92,6 @@ namespace SushiBarView
DialogResult = DialogResult.Cancel; DialogResult = DialogResult.Cancel;
Close(); Close();
} }
} }
} }

View File

@ -99,6 +99,7 @@
Controls.Add(dataGridView); Controls.Add(dataGridView);
Name = "FormComponents"; Name = "FormComponents";
Text = "Компоненты"; Text = "Компоненты";
Load += FormComponents_Load;
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit(); ((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
ResumeLayout(false); ResumeLayout(false);
} }

View File

@ -147,6 +147,7 @@
MainMenuStrip = menuStrip; MainMenuStrip = menuStrip;
Name = "FormMain"; Name = "FormMain";
Text = "Суши-бар"; Text = "Суши-бар";
Load += FormMain_Load;
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit(); ((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
menuStrip.ResumeLayout(false); menuStrip.ResumeLayout(false);
menuStrip.PerformLayout(); menuStrip.PerformLayout();

View File

@ -177,6 +177,7 @@
Controls.Add(labelName); Controls.Add(labelName);
Name = "FormSushi"; Name = "FormSushi";
Text = "Суши"; Text = "Суши";
Load += FormSushi_Load;
groupBoxComponents.ResumeLayout(false); groupBoxComponents.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit(); ((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
ResumeLayout(false); ResumeLayout(false);

View File

@ -98,6 +98,7 @@
Controls.Add(dataGridView); Controls.Add(dataGridView);
Name = "FormSushis"; Name = "FormSushis";
Text = "Суши"; Text = "Суши";
Load += FormSushis_Load;
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit(); ((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
ResumeLayout(false); ResumeLayout(false);
} }

View File

@ -42,7 +42,7 @@ namespace SushiBarView
_logic = logic; _logic = logic;
} }
private void FormSushi_Load(object sender, EventArgs e) private void FormSushis_Load(object sender, EventArgs e)
{ {
LoadData(); LoadData();
} }