/// <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"); }
/// <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"); }
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); }