示例#1
0
        private void button1_Click(object sender, EventArgs e)
        {
            PaymentSucessfulwindow paymentSucessfulwindow = new PaymentSucessfulwindow(transID, RunningTotal, 00.00f, OrderList.Items, userID);

            paymentSucessfulwindow.Show();
            this.Hide();
        }
示例#2
0
        private void Enterbtn_Click(object sender, EventArgs e)
        {
            Transaction transaction = new Transaction();

            transaction.transactionID = 4;

            CalculatedChange = (float.Parse(EnteredAmountlbl.Text) - RunningTotal);
            PaymentSucessfulwindow paymentSucessfulwindow = new PaymentSucessfulwindow(transaction.transactionID, RunningTotal, CalculatedChange, OrderList.Items, userID);

            paymentSucessfulwindow.Show();     //show payment sucesful window
            this.Close();
        }
示例#3
0
        private void TwentyPoundsbtn_Click(object sender, EventArgs e)
        {
            float calc;

            this.Hide();
            Transaction transaction = new Transaction();

            transaction.transactionID = 4;
            calc             = RunningTotal;
            CalculatedChange = 20.00f - calc;
            PaymentSucessfulwindow paymentSucessfulwindow = new PaymentSucessfulwindow(transaction.transactionID, RunningTotal, CalculatedChange, OrderList.Items, userID);

            paymentSucessfulwindow.Show();
        }