/// <summary> /// Notifies the module that it has be initialized. /// </summary> public void Initialize() { logger.Debug("Initializing Player Tasks Module"); this.playerTasksController = this.Container.GetExportedValue <IPlayerTasksController>(); this.viewController = this.Container.GetExportedValue <IPlayerTasksViewController>(); // Register for shutdown Commands.ApplicationShutdownCommand.RegisterCommand(new DelegateCommand(this.Shutdown)); // Initialize the view controller this.viewController.Initialize(); // Start the controller this.playerTasksController.Start(); logger.Debug("Player Tasks Module initialized"); }
/// <summary> /// Notifies the module that it has be initialized. /// </summary> public void Initialize() { logger.Debug("Initializing Player Tasks Module"); this.playerTasksController = this.Container.GetExportedValue<IPlayerTasksController>(); this.viewController = this.Container.GetExportedValue<IPlayerTasksViewController>(); // Register for shutdown Commands.ApplicationShutdownCommand.RegisterCommand(new DelegateCommand(this.Shutdown)); // Initialize the view controller this.viewController.Initialize(); // Start the controller this.playerTasksController.Start(); logger.Debug("Player Tasks Module initialized"); }
public TasksMenu(IPlayerTasksViewController viewFactory) { // For now, the only option is to open the task tracker, which is this menu item itself this.OnClickCommand = new DelegateCommand(viewFactory.DisplayTaskTracker, viewFactory.CanDisplayTaskTracker); }
public TasksMenu(IPlayerTasksViewController viewFactory) { // For now, the only option is to open the task tracker, which is this menu item itself this.OnClickCommand = new DelegateCommand(viewFactory.DisplayTaskTracker, viewFactory.CanDisplayTaskTracker); }