Beispiel #1
0
        private void Pay()
        {
            //set order to paid
            orderLogic.Set_Order_To_Paid(order);

            //show confirmation screen
            CheckoutConfirmationUI checkoutconfUI = new CheckoutConfirmationUI(order);

            this.Hide();
            checkoutconfUI.ShowDialog();
        }
Beispiel #2
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            //check if change is positive
            if (change >= 0)
            {
                //set order to paid in the database
                orderLogic.Set_Order_To_Paid(order);

                CheckoutConfirmationUI checkoutconfUI = new CheckoutConfirmationUI(order);
                this.Hide();
                checkoutconfUI.ShowDialog();
            }
            else
            {
                MessageBox.Show("Er is te weinig betaald!");
            }
        }