Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            System.Windows.Forms.Application.ThreadException += new ThreadExceptionEventHandler(ApplicationExceptionHandler);

            QSetEnvironmentForm mainForm = new QSetEnvironmentForm();

            if (args.Length == 1)
            {
                mainForm.OpenQSet(args[0]);
            }
            System.Windows.Forms.Application.Run(mainForm);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Constructs the object with the minumum requirements.
        /// </summary>
        /// <param name="environmentForm">Main environment form.</param>
        /// <param name="QueueSearchForm">Persistant search dialog.</param>
        public PrimaryForms(QSetEnvironmentForm environmentForm, QueueSearchForm QueueSearchForm)
        {
            if (QueueSearchForm == null)
            {
                throw new ArgumentNullException("QueueSearchForm");
            }
            else if (environmentForm == null)
            {
                throw new ArgumentNullException("environmentForm");
            }

            _environmentForm = environmentForm;
            _QueueSearchForm = QueueSearchForm;
        }
Ejemplo n.º 3
0
		/// <summary>
		/// Constructs the coordinator.
		/// </summary>
		/// <param name="qSetEnvironmentForm">Environment form.</param>
		/// <param name="primaryControls">Primary controls.</param>
		/// <param name="primaryMenus">Primary menus.</param>
		/// <param name="primaryForms">Primary forms.</param>
		/// <param name="primaryObjects">Primary objects.</param>
		public EnvironmentCoordinator(
			QSetEnvironmentForm qSetEnvironmentForm, 
			PrimaryMenus primaryMenus, 
			PrimaryControls primaryControls,
			PrimaryForms primaryForms,
			PrimaryObjects primaryObjects)
		{						
			_primaryForms = primaryForms;
			_primaryObjects = primaryObjects;
			_primaryControls = primaryControls;

			_taskManager = new TaskManager(primaryMenus, primaryControls, primaryForms, primaryObjects);	
			_primaryMenuListener = new PrimaryMenuListener(_taskManager, _primaryObjects, _primaryForms, _primaryControls, primaryMenus);
			_primaryControlListener = new PrimaryControlListener(_taskManager, _primaryObjects, _primaryForms, _primaryControls, primaryMenus);
			_primaryFormListener = new PrimaryFormsListener(_taskManager, _primaryObjects, _primaryForms, _primaryControls, primaryMenus);
		}
Ejemplo n.º 4
0
		static void Main(string[] args) 
		{			
			System.Windows.Forms.Application.ThreadException += new ThreadExceptionEventHandler(ApplicationExceptionHandler);

            QSetEnvironmentForm mainForm = new QSetEnvironmentForm();
            if (args.Length == 1)
                mainForm.OpenQSet(args[0]);
            System.Windows.Forms.Application.Run(mainForm);
		}
Ejemplo n.º 5
0
		/// <summary>
		/// Constructs the object with the minumum requirements.
		/// </summary>
		/// <param name="environmentForm">Main environment form.</param>
		/// <param name="QueueSearchForm">Persistant search dialog.</param>
		public PrimaryForms(QSetEnvironmentForm environmentForm, QueueSearchForm QueueSearchForm)
		{
			if (QueueSearchForm == null) throw new ArgumentNullException("QueueSearchForm");
			else if (environmentForm == null) throw new ArgumentNullException("environmentForm");

			_environmentForm = environmentForm;
			_QueueSearchForm = QueueSearchForm;
		}