private void menuEditOptions_Click(object sender, EventArgs e) { if (!bIsAdmin) { bIsAdmin = bStayAdmin; Form fPassword = new PasswordPrompt(this); fPassword.ShowDialog(this); } if (bIsAdmin || CheckPassword()) { Form fOptions = new OptionsManagement(sqlite_conn, sqlite_cmd); fOptions.Show(); } else { MessageBox.Show("Invalid password."); } }
private void MenuEditPeople_Click(object sender, EventArgs e) { if (!bIsAdmin) { Form fPassword = new PasswordPrompt(this); fPassword.ShowDialog(this); } if (bIsAdmin || CheckPassword()) { bIsAdmin = bStayAdmin; Form fPeople = new PeopleManagement(sqlite_conn); fPeople.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."); } }