Beispiel #1
0
        private void back_Click(object sender, EventArgs e)
        {
            TaskPage tp = new TaskPage(myATM);

            tp.Show();
            this.Close();
        }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            TaskPage tp = new TaskPage(myATM);

            this.Hide();
            tp.Show();
        }
Beispiel #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (myATM.login(this.textBox2.Text, this.textBox3.Text))
     {
         TaskPage tp = new TaskPage(myATM);
         this.Hide();
         tp.Show();
     }
     else
     {
         MessageBox.Show("Invalid Password", "Please Try Again", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }