Exemplo n.º 1
0
        /// <summary>
        /// Notifies the module that it has be initialized.
        /// </summary>
        public void Initialize()
        {
            logger.Debug("Initializing Zone Completion Module");

            this.zoneCompletionController = this.Container.GetExportedValue <IZoneCompletionController>();
            this.viewController           = this.Container.GetExportedValue <IZoneCompletionViewController>();

            // Register for shutdown
            Commands.ApplicationShutdownCommand.RegisterCommand(new DelegateCommand(this.Shutdown));

            // Initialize the view controller
            this.viewController.Initialize();

            logger.Debug("Zone Completion Module initialized");
        }
Exemplo n.º 2
0
        /// <summary>
        /// Notifies the module that it has be initialized.
        /// </summary>
        public void Initialize()
        {
            logger.Debug("Initializing Zone Completion Module");

            this.zoneCompletionController = this.Container.GetExportedValue<IZoneCompletionController>();
            this.viewController = this.Container.GetExportedValue<IZoneCompletionViewController>();

            // Initialize the zone items store on a background thread
            var zoneItemsStore = this.Container.GetExportedValue<ZoneItemsStore>();
            Task.Factory.StartNew(zoneItemsStore.InitializeStore);


            // Register for shutdown
            Commands.ApplicationShutdownCommand.RegisterCommand(new DelegateCommand(this.Shutdown));

            // Initialize the view controller
            this.viewController.Initialize();

            logger.Debug("Zone Completion Module initialized");
        }
Exemplo n.º 3
0
        /// <summary>
        /// Notifies the module that it has be initialized.
        /// </summary>
        public void Initialize()
        {
            logger.Debug("Initializing Zone Completion Module");

            this.zoneCompletionController = this.Container.GetExportedValue <IZoneCompletionController>();
            this.viewController           = this.Container.GetExportedValue <IZoneCompletionViewController>();

            // Initialize the zone items store on a background thread
            var zoneItemsStore = this.Container.GetExportedValue <ZoneItemsStore>();

            Task.Factory.StartNew(zoneItemsStore.InitializeStore);


            // Register for shutdown
            Commands.ApplicationShutdownCommand.RegisterCommand(new DelegateCommand(this.Shutdown));

            // Initialize the view controller
            this.viewController.Initialize();

            logger.Debug("Zone Completion Module initialized");
        }
Exemplo n.º 4
0
 public ZoneCompletionMenu(IZoneCompletionViewController viewFactory)
 {
     // For now, the only option is to open the zone completion assistant, which is this menu item itself
     this.OnClickCommand = new DelegateCommand(viewFactory.DisplayZoneCompletionAssistant, viewFactory.CanDisplayZoneCompletionAssistant);
 }
Exemplo n.º 5
0
 public ZoneCompletionMenu(IZoneCompletionViewController viewFactory)
 {
     // For now, the only option is to open the zone completion assistant, which is this menu item itself
     this.OnClickCommand = new DelegateCommand(viewFactory.DisplayZoneCompletionAssistant, viewFactory.CanDisplayZoneCompletionAssistant);
 }