private void ShowGridMappingWindow(bool mulitpleAOIs = false)
 {
     if (MapWindowManager.MapLayersHandler.IsLayerLoadedInMap("extracted_tracks"))
     {
         GridMappingWindow gmw = GridMappingWindow.GetInstance();
         gmw.MultipleAOIs = mulitpleAOIs;
         if (!mulitpleAOIs)
         {
             gmw.AOI = _aoi;
         }
         gmw.Owner = this;
         if (gmw.Visibility == Visibility.Visible)
         {
             gmw.BringIntoView();
         }
         else
         {
             gmw.Show();
         }
     }
     else
     {
         MessageBox.Show("Extracted tracks is not in the map", "GPX Manager", MessageBoxButton.OK, MessageBoxImage.Information);
     }
 }
Esempio n. 2
0
 public static GridMappingWindow GetInstance()
 {
     if (_instance == null)
     {
         _instance = new GridMappingWindow();
     }
     return(_instance);
 }
Esempio n. 3
0
 private void OnWindowClosed(object sender, EventArgs e)
 {
     _instance = null;
 }