PIbd-21 Lab2-Hard KozyrevSS SewingDresses #7

Closed
Serxionaft wants to merge 15 commits from Lab2-Hard into Lab2
Showing only changes of commit 880272b84d - Show all commits

View File

@ -24,6 +24,7 @@ namespace SewingDressesView
{
dataGridView.DataSource = list;
dataGridView.Columns["DressId"].Visible = false;
dataGridView.Columns["DressName"].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
}
_logger.LogInformation("Load orders");
}
@ -142,9 +143,22 @@ namespace SewingDressesView
LoadData();
}
private void MainForm_Load(object sender, EventArgs e)
private void ShopsToolStripMenuItem_Click(object sender, EventArgs e)
{
LoadData();
var service = Program.ServiceProvider?.GetService(typeof(ShopsForm));
if (service is ShopsForm form)
{
form.ShowDialog();
}
}
private void SupplyToolStripMenuItem_Click(object sender, EventArgs e)
{
var service = Program.ServiceProvider?.GetService(typeof(SupplyForm));
if (service is SupplyForm form)
{
form.ShowDialog();
}
}
}
}