Esempio n. 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (name.Text == "male" && password.Text == "male")
     {
         detail dt = new detail();
         dt.Show();
         this.Hide();
     }
     if (name.Text == "female" && password.Text == "female")
     {
         femaledetailsfom dt = new femaledetailsfom();
         dt.Show();
         this.Hide();
     }
     else if (name.Text == "admin" && password.Text == "admin")
     {
         adminpage.adminpage ad = new adminpage.adminpage();
         ad.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show("Incorrect Value");
     }
 }
Esempio n. 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            detail log = new detail();

            log.Show();
            this.Hide();
        }
Esempio n. 3
0
        private void button5_Click(object sender, EventArgs e)
        {
            detail d = new detail();

            d.Show();
            this.Hide();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            detail de = new detail();

            de.Show();
            this.Show();
        }