Ejemplo n.º 1
0
        /// <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");
        }
Ejemplo n.º 2
0
        /// <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");
        }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
0
 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);
 }