/// <summary> /// Loads the Waiting Area form. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void waitingAreaPB_Click(object sender, EventArgs e) { if (Account.userHasRole(myUsername, "Waiting Area")) { Waiting_Area waitingAreaForm = new Waiting_Area(); this.Hide(); waitingAreaForm.WindowState = FormWindowState.Maximized; waitingAreaForm.FormBorderStyle = FormBorderStyle.Fixed3D; waitingAreaForm.TopMost = true; waitingAreaForm.ShowDialog(); this.Show(); } else { MessageBox.Show(permissionMessage, permissionHeader, MessageBoxButtons.OK, MessageBoxIcon.Stop); } }
/// <summary> /// Displays the waiting area form. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void waitingAreaToolStripMenuItem_Click(object sender, EventArgs e) { Waiting_Area waitingArea = new Waiting_Area(); waitingArea.Show(); }