private void toolStripAdminButton_Click(object sender, EventArgs e) { CheckForAdmins(); PassWord passWord = new PassWord(); DialogResult result = passWord.ShowDialog(); if (result == DialogResult.OK) { AdminPage adminPage = new AdminPage(); adminPage.ShowDialog(); } }