Beispiel #1
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(
            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);
        }
		/// <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);
		}