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

            this.viewController = this.Container.GetExportedValue<ITeamspeakViewController>();

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

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

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

            this.viewController = this.Container.GetExportedValue <ITeamspeakViewController>();

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

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

            logger.Debug("Teamspeak Module initialized");
        }
Exemple #3
0
 public TeamspeakMenu(ITeamspeakViewController viewFactory)
 {
     // For now, the only option is to open the teamspeak overlay, which is this menu item itself
     this.OnClickCommand = new DelegateCommand(viewFactory.DisplayTeamspeakOverlay, viewFactory.CanDisplayTeamspeakOverlay);
 }
Exemple #4
0
 public TeamspeakMenu(ITeamspeakViewController viewFactory)
 {
     // For now, the only option is to open the teamspeak overlay, which is this menu item itself
     this.OnClickCommand = new DelegateCommand(viewFactory.DisplayTeamspeakOverlay, viewFactory.CanDisplayTeamspeakOverlay);
 }