private void KiesScherm(Staff staff) { string rol = staff.Role; switch (rol) { case "waiter": lbl_geengegevens.Text = "U kunt niet inloggen in de desktop omgeving als serveerder"; break; case "owner": mainView.LoadView(new OrderView("food")); break; case "bartender": mainView.LoadView(new OrderView("drink")); break; case "chef": mainView.LoadView(new OrderView("food")); break; } }
private void ShowItemsOnMenu(object sender, EventArgs e, Model.Menu selectedMenu) { parent.LoadView(new ItemsOnMenuView(selectedMenu, parent)); }
private void BtnYes_Click(object sender, EventArgs e) { menuService.DeleteMenu(menu.Id); Close(); parent.LoadView(new MenuPickerView(parent)); }
private void LblKitchen_Click(object sender, EventArgs e) { parent.LoadView(new StockView("food")); }