Exemple #1
0
        public void ChangeCurrentOrder(int index)
        {
            InputValueWindow currInputWind = new InputValueWindow(this);

            currInputWind.ShowDialog();
            if (Q != null)
            {
                cashRegister.CurrentSushiOrder.ChangeOrder(cashRegister.CurrentSushiOrder.Order[index], (uint)Q);
            }
        }
Exemple #2
0
        public void AddCurrentItemToOrder(int index)
        {
            InputValueWindow currInputWind = new InputValueWindow(this);

            currInputWind.ShowDialog();
            if (Q != null)
            {
                SushiItem itemToAdd = new SushiItem(cashRegister.Menu.AllPossibleItems[index].Name,
                                                    cashRegister.Menu.AllPossibleItems[index].Price);
                cashRegister.CurrentSushiOrder.OrderSomething(itemToAdd, (uint)Q);
            }
        }