Example #1
0
        /// <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");
        }
Example #2
0
        /// <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");
        }
Example #3
0
 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);
 }
Example #4
0
 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);
 }