private void back_Click(object sender, EventArgs e) { TaskPage tp = new TaskPage(myATM); tp.Show(); this.Close(); }
private void button1_Click(object sender, EventArgs e) { TaskPage tp = new TaskPage(myATM); this.Hide(); tp.Show(); }
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); } }