예제 #1
0
        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;
            }
        }
예제 #2
0
 private void ShowItemsOnMenu(object sender, EventArgs e, Model.Menu selectedMenu)
 {
     parent.LoadView(new ItemsOnMenuView(selectedMenu, parent));
 }
예제 #3
0
 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"));
 }