private void profileToolStripMenuItem_Click(object sender, EventArgs e)
 {
     viewProfileFrm nf = new viewProfileFrm();
     this.Close();
     nf.Show();
 }
Пример #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();
     }
 }