//Confirm button that takes user choice and directs to the appropriate Form
        private void ConfirmPINentry_Click_1(object sender, EventArgs e)
        {
            //Log current operation:
            s3log.logOperation(sender);

            switch (sUserChoice)
            {
            case "1":
                //Withdraw moneeeeeeey
                Form ATM7 = new ATM7(); // Instantiate a Form object.
                ATM7.Show();            //show the new Form
                this.Visible = false;   //Hide the old form
                break;


            case "2":
                //Change PIN form
                Form ATM8 = new ATM8(); // Instantiate a Form object.
                ATM8.Show();            //show the new Form
                this.Visible = false;   //Hide the old form
                break;

            case "3":
                //Balance Enquiry form
                Form ATM9 = new ATM9(); // Instantiate a Form object.
                ATM9.Show();            //show the new Form
                this.Visible = false;   //Hide the old form
                break;

            default:
                MetroMessageBox.Show(this, "Please provide a selection!");
                break;
            }
        }
Ejemplo n.º 2
0
        private async void CardInserted_Click(object sender, EventArgs e)
        {
            await Task.Delay(500);

            Form ATM7 = new ATM7(); // Instantiate a Form object.

            ATM7.Show();            //show the new Form
            this.Visible = false;   //Hide the old form
        }