Ejemplo n.º 1
0
 private void loginbutton_Click(object sender, EventArgs e)
 {
     if (idtextBox.Text == scheduler1.Idnumber && passwordtextBox.Text == scheduler1.Password)
     {
         scheduleraflogin afterlogin = new scheduleraflogin();
         this.Hide();
         afterlogin.Show();
     }
     else if (idtextBox.Text == scheduler2.Idnumber && passwordtextBox.Text == scheduler2.Password)
     {
         scheduleraflogin afterlogin = new scheduleraflogin();
         this.Hide();
         afterlogin.Show();
     }
     else if (idtextBox.Text == scheduler3.Idnumber && passwordtextBox.Text == scheduler3.Password)
     {
         scheduleraflogin afterlogin = new scheduleraflogin();
         this.Hide();
         afterlogin.Show();
     }
     else
     {
         MessageBox.Show("Login Invalid");
         idtextBox.Clear();
         passwordtextBox.Clear();
     }
 }
Ejemplo n.º 2
0
        private void returnbutton_Click(object sender, EventArgs e)
        {
            scheduleraflogin afterlogin = new scheduleraflogin();

            this.Hide();
            afterlogin.Show();
        }