private void CheckPayment() { if (amountDue <= 0) { GlobalData.change = -1 * amountDue; PrintTicket ticket = new PrintTicket(); ticket.coinmethod = this; ticket.Show(); this.Hide(); return; } }
private void CreditDebit_Shown(object sender, EventArgs e) { String message = "A green light appears near the card reader. This screen will persist until the user completes their transaction. Clicking the OK button simulates this action. Clicking Cancel simulates the Cancel button on the card reader."; DialogResult result = MessageBox.Show(message, "Important", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1); if (result == System.Windows.Forms.DialogResult.OK) { PrintTicket ticket = new PrintTicket(); ticket.Show(); ticket.cardmethod = this; this.Hide(); } else { this.Close(); this.method.Show(); String act = "Keypad actions cancelled. The green light shuts off."; MessageBox.Show(act, "Important", MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1); } }
private void CreditDebit_Shown(object sender, EventArgs e) { String message = "A green light appears near the card reader. This screen will persist until the user completes their transaction. Clicking the OK button simulates this action. Clicking Cancel simulates the Cancel button on the card reader."; DialogResult result = MessageBox.Show(message, "Important", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1); if (result == System.Windows.Forms.DialogResult.OK) { PrintTicket ticket = new PrintTicket(); ticket.Show(); ticket.cardmethod = this; this.Hide(); } else { this.Close(); this.method.Show(); String act = "Keypad actions cancelled. The green light shuts off."; MessageBox.Show(act, "Important", MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1); } }