Ejemplo n.º 1
0
        /// <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();
        }
Ejemplo n.º 2
0
		/// <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();
		}