private void regStuLinkLbl_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     RegisterStudentFrm nf = new RegisterStudentFrm();
     this.Close();
     nf.Show();
 }
Exemplo n.º 2
0
 private void loginBtn_Click(object sender, EventArgs e)
 {
     if ((userNameTxt.Text == "admin") && (passwordTxt.Text == "test123"))
     {
         RegisterStudentFrm nff = new RegisterStudentFrm();
         this.Hide();
         nff.Show();
     }
     else
     {
         viewProfileFrm nf = new viewProfileFrm();
         this.Hide();
         nf.Show();
         checkLogin();
     }
 }