Exemple #1
0
        private void buttonPlaceOrder_Click(object sender, EventArgs e)
        {
            OrderMenuRepo orderMenuRepo = new OrderMenuRepo();

            this.textBoxTotalservice.Text = orderMenuRepo.GetPrice().ToString();
            this.textBoxPaytotal.Text     = orderMenuRepo.GetPrice().ToString();
            List <OrderMenu> orderMenuList = orderMenuRepo.GetAllOrderMenu();

            this.dataGridViewservicebill.DataSource = orderMenuList;
            SercicetabControl1.SelectedIndex        = 3;
            orderMenuRepo.ResetSelectedItem();
        }
Exemple #2
0
        private void placeManagerOrder_bt_Click(object sender, EventArgs e)
        {
            OrderMenuRepo orderMenuRepo = new OrderMenuRepo();

            this.textBoxTotal.Text           = orderMenuRepo.GetPrice().ToString();
            this.textBoxPayableTotalMan.Text = orderMenuRepo.GetPrice().ToString();
            List <OrderMenu> orderMenuList = orderMenuRepo.GetAllOrderMenu();

            this.dataGridViewManagerBill.DataSource = orderMenuList;
            managerTabControl.SelectedIndex         = 4;
            orderMenuRepo.ResetSelectedItem();
        }
Exemple #3
0
        private void buttonPlaceOrder_Click(object sender, EventArgs e)
        {
            OrderMenuRepo orderMenuRepo = new OrderMenuRepo();

            this.textBoxTotalPrice.Text   = orderMenuRepo.GetPrice().ToString();
            this.textBoxPayableTotal.Text = orderMenuRepo.GetPrice().ToString();
            List <OrderMenu> orderMenuList = orderMenuRepo.GetAllOrderMenu();

            this.dataGridViewBilling.DataSource = orderMenuList;
            AdminTabControl.SelectedIndex       = 5;
            orderMenuRepo.ResetSelectedItem();
        }