Example #1
0
        //Return to previous form
        private void CancelButton_Click(object sender, EventArgs e)
        {
            Form ATM4 = new ATM4(); // Instantiate a Form object.

            ATM4.Show();            //show the new Form

            this.Visible = false;   //Hide the old form
        }
        private async void CardInserted_Click(object sender, EventArgs e)
        {
            await Task.Delay(500);

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

            ATM4.Show();            //show the new Form

            this.Visible = false;   //Hide the old form
        }
        private void CardInserted_Click(object sender, EventArgs e)
        {
            this.timer1.Stop();

            //Log current operation:
            s3log.logOperation(sender);

            //continue to next form:
            this.log(true);
            Form ATM4 = new ATM4(); // Instantiate a Form object.

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