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