/// <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"); }
public CycleTrackerViewModel(ICyclesController eventTrackerController) { this.controller = eventTrackerController; this.ResetHiddenCyclesCommand = new DelegateCommand(this.ResetHiddenCycles); this.SettingsCommand = new DelegateCommand(() => Commands.OpenCycleSettingsCommand.Execute(null)); }
public CycleNotificationsWindowViewModel(ICyclesController controller) { this.controller = controller; }