Exemple #1
0
        /// <summary>
        /// Notifies the module that it has be initialized.
        /// </summary>
        public void Initialize()
        {
            logger.Debug("Initializing Cycles Module");

            this.cyclesController = this.container.GetExportedValue <ICyclesController>();
            this.viewController   = this.container.GetExportedValue <ICyclesViewController>();

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

            // Get the cycles controller started
            this.cyclesController.Start();

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

            logger.Debug("Cycles Module initialized");
        }
Exemple #2
0
 public CycleTrackerViewModel(ICyclesController eventTrackerController)
 {
     this.controller = eventTrackerController;
     this.ResetHiddenCyclesCommand = new DelegateCommand(this.ResetHiddenCycles);
     this.SettingsCommand          = new DelegateCommand(() => Commands.OpenCycleSettingsCommand.Execute(null));
 }
Exemple #3
0
 public CycleNotificationsWindowViewModel(ICyclesController controller)
 {
     this.controller = controller;
 }