RemoveConflict

This commit is contained in:
Sergey Kozyrev 2024-03-05 14:34:27 +04:00
parent 807b93dd34
commit 880272b84d

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();
}
}
}
}