예제 #1
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");
        }
예제 #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");
        }
예제 #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);
 }
예제 #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);
 }