// 显示鹰眼窗口
 private void barButtonItem10_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (Variable.pMapFrm.mainMapControl.Map.LayerCount == 0)
     {
         Variable.pEnvelop = Variable.pEagleEyeMapFrm.EagelEyeMapControl.FullExtent;
     }
     this.ShowEagleEye();
     EagleEyeClass.SynchronizeEagleEye();
     EagleEyeClass.DrawRectangle(Variable.pEnvelop);
 }
 // 显示地图窗口
 public void ShowMapFrm()
 {
     if (Variable.pMapFrm == null || Variable.pMapFrm.IsDisposed)
     {
         Variable.pMapFrm             = new MapFrm();
         Variable.pMapFrm.CurrentTool = MapTools.None;
         this.ShowDockContent(Variable.pMapFrm, DockState.Document);
         EagleEyeClass.SynchronizeEagleEye();
     }
     else
     {
         this.ShowDockContent(Variable.pMapFrm, DockState.Document);
         EagleEyeClass.SynchronizeEagleEye();
     }
 }
示例#3
0
 private void axMapControl1_OnKeyDown(object sender, IMapControlEvents2_OnKeyDownEvent e)
 {
     EagleEyeClass.SynchronizeEagleEye();
 }
示例#4
0
 private void axMapControl1_OnMapReplaced(object sender, IMapControlEvents2_OnMapReplacedEvent e)
 {
     EagleEyeClass.SynchronizeEagleEye();
 }