Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
 public static GridMappingWindow GetInstance()
 {
     if (_instance == null)
     {
         _instance = new GridMappingWindow();
     }
     return(_instance);
 }
Ejemplo n.º 3
0
 private void OnWindowClosed(object sender, EventArgs e)
 {
     _instance = null;
 }