/// <summary> /// Prompts the user to select a queue, and then opens the queue in the environment. /// </summary> public void OpenQueue() { using (OpenQueueDialog selectQueueForm = new OpenQueueDialog()) { selectQueueForm.Owner = _primaryForms.EnvironmentForm; selectQueueForm.StartPosition = FormStartPosition.CenterParent; if (selectQueueForm.ShowDialog() == DialogResult.OK) { OpenQueue(new QSetQueueItem(selectQueueForm.QueueName)); } } _menuStateManager.SetQSetMenuState(); }