/// <summary> /// Notifies the module that it has be initialized. /// </summary> public void Initialize() { logger.Debug("Initializing Day-Night Timer Module"); this.viewController = this.container.GetExportedValue <IDayNightViewController>(); // Register for shutdown Commands.ApplicationShutdownCommand.RegisterCommand(new DelegateCommand(this.Shutdown)); // Initialize the view controller this.viewController.Initialize(); logger.Debug("Day-Night Timer Module initialized"); }
/// <summary> /// Notifies the module that it has be initialized. /// </summary> public void Initialize() { logger.Debug("Initializing Day-Night Timer Module"); this.viewController = this.container.GetExportedValue<IDayNightViewController>(); // Register for shutdown Commands.ApplicationShutdownCommand.RegisterCommand(new DelegateCommand(this.Shutdown)); // Initialize the view controller this.viewController.Initialize(); logger.Debug("Day-Night Timer Module initialized"); }
public DayNightMenu(IDayNightViewController viewFactory) { // The only option is to open the day-night timer window, which is this menu item itself this.OnClickCommand = new DelegateCommand(viewFactory.OpenDayNightTimer, viewFactory.CanOpenDayNightTimer); }