예제 #1
0
 private void MenuEditClasses_Click(object sender, EventArgs e)
 {
     if (!bIsAdmin)
     {
         Form fPassword = new PasswordPrompt(this);
         fPassword.ShowDialog(this);
     }
     if (bIsAdmin || CheckPassword())
     {
         bIsAdmin = bStayAdmin;
         Form fClasses = new ClassManagement(sqlite_conn, sqlite_cmd);
         fClasses.Show();
     }
     else
     {
         MessageBox.Show("Invalid password.");
     }
 }
예제 #2
0
파일: Main.cs 프로젝트: Vectar/InSession
 private void MenuEditClasses_Click(object sender, EventArgs e)
 {
     if (!bIsAdmin)
     {
         Form fPassword = new PasswordPrompt(this);
         fPassword.ShowDialog(this);
     }
     if (bIsAdmin || CheckPassword())
     {
         bIsAdmin = bStayAdmin;
         Form fClasses = new ClassManagement(sqlite_conn, sqlite_cmd);
         fClasses.Show();
     }
     else
     {
         MessageBox.Show("Invalid password.");
     }
 }