private void button1_Click(object sender, EventArgs e) { PaymentSucessfulwindow paymentSucessfulwindow = new PaymentSucessfulwindow(transID, RunningTotal, 00.00f, OrderList.Items, userID); paymentSucessfulwindow.Show(); this.Hide(); }
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(); }
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(); }