/// <summary> /// Displays the Teamspeak overlay window, or, if already displayed, /// sets focus to the window /// </summary> private void DisplayTeamspeakOverlay() { if (this.teamspeakView == null || !this.teamspeakView.IsVisible) { this.teamspeakView = new TeamspeakView(new TeamspeakViewModel(this.TeamspeakService, this.TeamspeakSettings)); this.teamspeakView.Show(); } else { this.teamspeakView.Focus(); } }
/// <summary> /// Displays the Teamspeak overlay window, or, if already displayed, /// sets focus to the window /// </summary> public void DisplayTeamspeakOverlay() { if (this.teamspeakView == null || !this.teamspeakView.IsVisible) { this.teamspeakView = new TeamspeakView(); this.Container.ComposeParts(this.teamspeakView); this.teamspeakView.Show(); } else { this.teamspeakView.Focus(); } }