Exemplo n.º 1
0
 private void MenuEditRanks_Click(object sender, EventArgs e)
 {
     if (!bIsAdmin)
     {
         Form fPassword = new PasswordPrompt(this);
         fPassword.ShowDialog(this);
     }
     if (bIsAdmin || CheckPassword())
     {
         bIsAdmin = bStayAdmin;
         Form fRanks = new RankManagement(sqlite_conn, sqlite_cmd);
         fRanks.Show();
     }
     else
     {
         MessageBox.Show("Invalid password.");
     }
 }
Exemplo n.º 2
0
 private void MenuEditRanks_Click(object sender, EventArgs e)
 {
     if (!bIsAdmin)
     {
         Form fPassword = new PasswordPrompt(this);
         fPassword.ShowDialog(this);
     }
     if (bIsAdmin || CheckPassword())
     {
         bIsAdmin = bStayAdmin;
         Form fRanks = new RankManagement(sqlite_conn, sqlite_cmd);
         fRanks.Show();
     }
     else
     {
         MessageBox.Show("Invalid password.");
     }
 }