コード例 #1
0
 public OrderScreen(KitchenLiveOrderScreen kOrderScreen, CustomerLiveOrderScreen customerLiveOrderScreenObject, Order orderObject)
 {
     InitializeComponent();
     kitchenScreen  = kOrderScreen;
     customerScreen = customerLiveOrderScreenObject;
     order          = orderObject;
 }
コード例 #2
0
 public TakeoutSelectionScreen(KitchenLiveOrderScreen kOrderScreen, CustomerLiveOrderScreen customerLiveScrenObject)
 {
     InitializeComponent();
     kitchenScreen  = kOrderScreen;
     customerScreen = customerLiveScrenObject;
     kOrderScreen.incrementOrderNo();
 }
コード例 #3
0
        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;
        }