/// <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"); }
/// <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"); }
/// <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"); }
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); }
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); }