private void CancelButton_Click(object sender, EventArgs e) { Form ATM1 = new ATM1(); // Instantiate a Form object. ATM1.Show(); //show the new Form this.Visible = false; //Hide the old form }
private void CancelButton_Click(object sender, EventArgs e) { //cancel to initial form, maybe not too necessary here Form ATM1 = new ATM1(); // Instantiate a Form object. ATM1.Show(); //show the new Form this.log(false); this.Visible = false; //Hide the old form //Log current operation: s3log.logOperation(sender); }
//Return to initial form private void metroButton1_Click(object sender, EventArgs e) { //CancelMsgBox AutoClosingMessageBox.Show("Cancelled current operation. Ejecting card and restarting...", "Aborting", 1500, this); //Going back to first form (restart) Form ATM1 = new ATM1(); // Instantiate a Form object. ATM1.Show(); //show the new Form this.Visible = false; }
private void metroButton1_Click(object sender, EventArgs e) { //Cancel MsgBox & close the message after certain time: AutoClosingMessageBox.Show("Cancelled current operation. Ejecting card and restarting...", "Aborting", 1500, this); //Going back to first form (=restart) Form ATM1 = new ATM1(); // Instantiate a Form object. ATM1.Show(); //show the new Form //Log current operation: s3log.logOperation(sender); this.Visible = false; }
private async void button1_Click(object sender, EventArgs e) { //AutoClosingMessageBox.Show(EnvironmentComboBox.Text, "Info", 1500, this); //AutoClosingMessageBox.Show(ProblemsComboBox.SelectedItem.ToString(), "Info", 1500, this); useCaseVariables.strNotificationAddress = EmailTextBox.Text; useCaseVariables.bCheckBoxPowerSourceBattery = CheckBoxPowerSourceBattery.Checked; useCaseVariables.bCheckBoxPINEntriesExhausted = CheckBoxPINEntriesExhausted.Checked; useCaseVariables.bCheckBoxNetworkConnectionUnstable = CheckBoxNetworkConnectionUnstable.Checked; //start the First form Form ATM1 = new ATM1(); // Instantiate a Form object. ATM1.Show(); //show the new Form //hide the old form this.Visible = false; //Hide the old form }
private void withdrawPrintReceipt(int WithdrawAmount) { //Dispense WithdrawAmount AutoClosingMessageBox.Show("Requested amount of " + WithdrawAmount + " Pesos is available in slot now", "Info", 1500, this); //Ask & send receipt var result = MetroMessageBox.Show(this, "Do you want to print a receipt?", "Receipt", MessageBoxButtons.YesNo); if (result == DialogResult.Yes) { //Doing Assans AWS Printing magic here String body = headz(WithdrawAmount); String title = "Thank you for using HELIOS Banking"; Lib.sendMail(title, body); AutoClosingMessageBox.Show("Finished AWS printing magic.", "Info", 1500, this); } //Asking for Performing other transaction result = MetroMessageBox.Show(this, "Do you to perform another transaction?", "Return to main menu", MessageBoxButtons.YesNo); if (result == DialogResult.Yes) { //Return to main menu for other transaction Form ATM6 = new ATM6(); // Instantiate a Form object. ATM6.Show(); //show the new Form this.Visible = false; //Hide the old form } else { AutoClosingMessageBox.Show("Finished current operation. Ejecting card and restarting...", "Restarting", 1500, this); //return to initial screen Form ATM1 = new ATM1(); // Instantiate a Form object. ATM1.Show(); //show the new Form this.Visible = false; //Hide the old form } }