示例#1
0
        private void txtPin_TextChanged(object sender, EventArgs e)
        {
            string pin = txtPin.Text;

            if (pin == randomNumber)
            {
                timer1.Stop();
                lblPin.Text = "";

                if (First_Page.opt1 == 0)
                {
                    doctorSignUp();
                }
                else
                {
                    patientSignUp();
                }
                this.Hide();
                First_Page first = new First_Page();
                first.ShowDialog();
                this.Close();
            }
            else
            {
                lblPin.Text = "Wrong Pin Code";
            }
        }
示例#2
0
        private void txtback_Click(object sender, EventArgs e)
        {
            Console.Beep();
            this.Hide();
            First_Page f = new First_Page();

            f.ShowDialog();
            this.Close();
        }
示例#3
0
        private void button5_Click(object sender, EventArgs e)
        {
            Console.Beep();
            this.Hide();
            First_Page fp = new First_Page();

            fp.ShowDialog();
            this.Close();
        }
 private void button2_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Are You Sure, You Want to LogOut", "Message", MessageBoxButtons.YesNo) == DialogResult.Yes)
     {
         this.Hide();
         First_Page first = new First_Page();
         first.ShowDialog();
         this.Close();
     }
 }