This commit is contained in:
Николай 2023-05-05 22:47:14 +04:00
parent 915eebed80
commit 559109f850
2 changed files with 7 additions and 2 deletions

View File

@ -49,12 +49,12 @@ namespace FoodOrdersView
}
private void DishToolStripMenuItem_Click(object sender, EventArgs e)
{
var form = DependencyManager.Instance.Resolve<FormComponents>();
var form = DependencyManager.Instance.Resolve<FormDishes>();
form.ShowDialog();
}
private void ButtonCreateOrder_Click(object sender, EventArgs e)
{
var form = DependencyManager.Instance.Resolve<FormComponents>();
var form = DependencyManager.Instance.Resolve<FormCreateOrder>();
form.ShowDialog();
LoadData();
}

View File

@ -86,6 +86,11 @@ namespace FoodOrdersView
DependencyManager.Instance.RegisterType<FormReportDishComponents>();
DependencyManager.Instance.RegisterType<FormReportOrders>();
DependencyManager.Instance.RegisterType<FormClients>();
DependencyManager.Instance.RegisterType<FormDishes>();
DependencyManager.Instance.RegisterType<FormCreateOrder>();
DependencyManager.Instance.RegisterType<FormImplementer>();
DependencyManager.Instance.RegisterType<FormMails>();
DependencyManager.Instance.RegisterType<FormViewImplementers>();
}
private static void MailCheck(object obj) => DependencyManager.Instance.Resolve<AbstractMailWorker>()?.MailCheck();