/// <summary> /// Show the location analysis window. Only one version can be shown at a given time. /// </summary> public void ShowLocationAnalysisWindow() { if (this.locationAnalysisWindow == null) { LocationAnalysisViewModel locationAnalysisViewModel = new LocationAnalysisViewModel(); this.locationAnalysisWindow = new LocationAnalysisWindow(); this.SetupWindow( this.locationAnalysisWindow, locationAnalysisViewModel, this.CloseLocationAnalysisWindow, this.LocationAnalysisWindowClosed); } this.locationAnalysisWindow.Focus(); }
/// <summary> /// Location analysis window has closed, reset to null. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void LocationAnalysisWindowClosed(object sender, EventArgs e) { this.locationAnalysisWindow = null; }