Пример #1
0
        private void btnStartOrder_Click(object sender, EventArgs e)
        {
            try
            {
                this.Hide();

                //assign the index of productTable datagridview
                newCustomer.id       = customerTable[0, customerTable.CurrentRow.Index].Value.ToString();
                newCustomer.fName    = customerTable[1, customerTable.CurrentRow.Index].Value.ToString();
                newCustomer.lName    = customerTable[2, customerTable.CurrentRow.Index].Value.ToString();
                newCustomer.phoneNum = customerTable[3, customerTable.CurrentRow.Index].Value.ToString();
                newCustomer.address  = customerTable[4, customerTable.CurrentRow.Index].Value.ToString();
                newCustomer.address1 = customerTable[5, customerTable.CurrentRow.Index].Value.ToString();
                newCustomer.city     = customerTable[6, customerTable.CurrentRow.Index].Value.ToString();
                newCustomer.state    = customerTable[7, customerTable.CurrentRow.Index].Value.ToString();
                newCustomer.zip      = customerTable[8, customerTable.CurrentRow.Index].Value.ToString();

                PlaceOrder po = new PlaceOrder();
                po.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Пример #2
0
        private void btnMainMenu_Click(object sender, EventArgs e)
        {
            PlaceOrder placeOrder = new PlaceOrder();

            placeOrder.Show();
            this.Hide();
        }
Пример #3
0
        private void btnAddMoreItems_Click(object sender, EventArgs e)
        {
            this.Hide();

            PlaceOrder po = new PlaceOrder();

            po.Show();
        }