public void ChangeCurrentOrder(int index) { InputValueWindow currInputWind = new InputValueWindow(this); currInputWind.ShowDialog(); if (Q != null) { cashRegister.CurrentSushiOrder.ChangeOrder(cashRegister.CurrentSushiOrder.Order[index], (uint)Q); } }
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); } }