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."); } }
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."); } }