public OrderScreen(KitchenLiveOrderScreen kOrderScreen, CustomerLiveOrderScreen customerLiveOrderScreenObject, Order orderObject) { InitializeComponent(); kitchenScreen = kOrderScreen; customerScreen = customerLiveOrderScreenObject; order = orderObject; }
public TakeoutSelectionScreen(KitchenLiveOrderScreen kOrderScreen, CustomerLiveOrderScreen customerLiveScrenObject) { InitializeComponent(); kitchenScreen = kOrderScreen; customerScreen = customerLiveScrenObject; kOrderScreen.incrementOrderNo(); }
public CheckoutScreen(float total, ListBox list, Order orderObject, OrderScreen oScreen, KitchenLiveOrderScreen kOScreen, CustomerLiveOrderScreen custScreenObject) { InitializeComponent(); totalTextBox.Text = total.ToString(); string text = ""; foreach (var item in list.Items) { text = item.ToString(); // /n to print each item on new line or you omit /n to print text on same line checkoutListBox.Items.Add(text); } order = orderObject; orderScreen = oScreen; kitchenScreen = kOScreen; customerScreen = custScreenObject; }