示例#1
0
        /// <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();
        }
示例#2
0
 /// <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;
 }