private void btn_alterOrder_Click_1(object sender, EventArgs e) { //we now have a created order already, so we'll just call the next form takeOrderUI = new ChooseMenuTypeUI(order); takeOrderUI.ShowDialog(); ShowOrder(order); }
private void btn_takeOrder_Click(object sender, EventArgs e) { //if (order == null) //{ // CreateNewOrder from database //} //create the new form where you can take your order takeOrderUI = new ChooseMenuTypeUI(order); takeOrderUI.ShowDialog(); //now the waiter has the possibility to alter the order btn_takeOrder.Hide(); btn_alterOrder.Show(); btn_payBill.Show(); btn_deleteItems.Show(); btn_sendOrder.Show(); ShowOrder(order); }
private void GoToChooseMenuTypeUI(Order order) { takeOrderUI = new ChooseMenuTypeUI(order); takeOrderUI.ShowDialog(); ShowOrder(order); }