示例#1
0
        private void btn_Confirm_Click(object sender, EventArgs e)
        {
            orderMenuItems.Clear();
            for (int i = 0; i < gridV_Lunch.Rows.Count; i++)
            {
                OrderMenuItem item = new OrderMenuItem()
                {
                    menuItemID = int.Parse(gridV_Lunch.Rows[i].Cells[0].Value.ToString()),
                    price      = double.Parse(gridV_Lunch.Rows[i].Cells[2].Value.ToString()),
                    quantity   = int.Parse(gridV_Lunch.Rows[i].Cells[3].Value.ToString()),
                    comments   = "No comment",
                };
                orderMenuItems.Add(item);
            }
            //foreach (OrderMenuItems value in orderMenuItems)
            //{
            //    commentBox.Text = value.menuItemID.ToString() + " " + value.itemName;
            // }
            //txt_tablenumber.Text = orderMenuItems.Count.ToString();

            this.Hide();
            TakingDrinksOrder waiterPage = new TakingDrinksOrder(employee, table, orderMenuItems);

            waiterPage.ShowDialog();
            this.Close();
        }
示例#2
0
        private void btn_Drinks_Click(object sender, EventArgs e)
        {
            this.Hide();
            TakingDrinksOrder orderSelect = new TakingDrinksOrder(employee, table, orderMenuItems);

            orderSelect.ShowDialog();
            this.Close();
        }
示例#3
0
        private void btn_chooseDrinks_Click(object sender, EventArgs e)
        {
            for (int i = 0; i < grisV_Dinner.Rows.Count; i++)
            {
                OrderMenuItem item = new OrderMenuItem()
                {
                    menuItemID = int.Parse(grisV_Dinner.Rows[i].Cells[0].Value.ToString()),
                    price      = double.Parse(grisV_Dinner.Rows[i].Cells[2].Value.ToString()),
                    quantity   = int.Parse(grisV_Dinner.Rows[i].Cells[3].Value.ToString()),
                    comments   = "No comment",
                };
                orderMenuItems.Add(item);
            }
            this.Hide();
            TakingDrinksOrder waiterPage = new TakingDrinksOrder(employee, table, orderMenuItems);

            waiterPage.ShowDialog();
            this.Close();
        }