public Magnifier_MapTool()
 {
   //Only enable for 2D view
   if (MapView.Active.ViewingMode != ArcGIS.Core.CIM.MapViewingMode.Map)
     return;
   mapControlWindow = new MapControlWindow();
   mapControlWindow.Show();
 }
Esempio n. 2
0
 protected override Task OnToolDeactivateAsync(bool hasMapViewChanged)
 {
     if (mapControlWindow != null)
     {
         mapControlWindow.Close();
         mapControlWindow = null;
     }
     return(base.OnToolDeactivateAsync(hasMapViewChanged));
 }
Esempio n. 3
0
 protected override Task OnToolActivateAsync(bool active)
 {
     if (mapControlWindow == null && MapView.Active.ViewingMode == ArcGIS.Core.CIM.MapViewingMode.Map)
     {
         mapControlWindow = new MapControlWindow();
         mapControlWindow.Show();
     }
     return(base.OnToolActivateAsync(active));
 }
 protected override Task OnToolDeactivateAsync(bool hasMapViewChanged)
 {
   if (mapControlWindow != null)
   {
     mapControlWindow.Close();
     mapControlWindow = null;
   }
   return base.OnToolDeactivateAsync(hasMapViewChanged);
 }
 protected override Task OnToolActivateAsync(bool active)
 {
   if (mapControlWindow == null && MapView.Active.ViewingMode == ArcGIS.Core.CIM.MapViewingMode.Map)
   {
     mapControlWindow = new MapControlWindow();
     mapControlWindow.Show();
   }
   return base.OnToolActivateAsync(active);
 }
Esempio n. 6
0
 public Magnifier_MapTool()
 {
     //Only enable for 2D view
     if (MapView.Active.ViewingMode != ArcGIS.Core.CIM.MapViewingMode.Map)
     {
         return;
     }
     mapControlWindow = new MapControlWindow();
     mapControlWindow.Show();
 }
Esempio n. 7
0
 public Magnifier_MapTool()
 {
     //Only enable for 2D view
     if (MapView.Active.ViewingMode != ArcGIS.Core.CIM.MapViewingMode.Map)
     {
         return;
     }
     mapControlWindow = new MapControlWindow()
     {
         Owner = FrameworkApplication.Current.MainWindow
     };
     mapControlWindow.Show();
 }