Ejemplo n.º 1
0
        public override void RestoreEnv()
        {
            if (this._uc != null)
            {
                this._uc.RestoreEnv();
                this._uc.Dispose();
                this._uc = null;
            }
            if (this._uPanel != null)
            {
                this._uPanel.GetControlContainer().Controls.Clear();
                this._uPanel.Close();
                this._uPanel = null;
            }
            IMap2DView mapView = UCService.GetContent(typeof(Map2DView)) as Map2DView;

            if (mapView == null)
            {
                return;
            }
            DF2DApplication app = DF2DApplication.Application;

            if (app == null || app.Current2DMapControl == null || app.Workbench == null)
            {
                return;
            }
            //app.Workbench.SetMenuEnable(true);
            IGraphicsContainer gc = app.Current2DMapControl.Map as IGraphicsContainer;

            gc.DeleteAllElements();
            app.Current2DMapControl.ActiveView.Refresh();
            mapView.UnBind(this);
            WaitForm.Stop();
            Map2DCommandManager.Pop();
        }
Ejemplo n.º 2
0
 public override void RestoreEnv()
 {
     Map2DCommandManager.Pop();
     mapView = UCService.GetContent(typeof(Map2DView)) as Map2DView;
     if (mapView == null) return;
     mapView.UnBind(this);
 }
Ejemplo n.º 3
0
 public override void RestoreEnv()
 {
     if (this._uPanel != null)
     {
         this._uPanel.GetControlContainer().Controls.Clear();
         this._uPanel.Close();
         this._uPanel = null;
     }
     Map2DCommandManager.Pop();
 }
Ejemplo n.º 4
0
 public override void RestoreEnv()
 {
     IMap2DView mapView = UCService.GetContent(typeof(Map2DView)) as Map2DView;
     if (mapView == null) return;
     mapView.UnBind(this);
     DF2DApplication app = DF2DApplication.Application;
     if (app == null || app.Current2DMapControl == null) return;
     app.Current2DMapControl.MousePointer = esriControlsMousePointer.esriPointerDefault;
     Map2DCommandManager.Pop();
 }
Ejemplo n.º 5
0
 public override void RestoreEnv()
 {
     Map2DCommandManager.Pop();
     mapView = UCService.GetContent(typeof(Map2DView)) as Map2DView;
     if (mapView == null)
     {
         return;
     }
     mapView.UnBind(this);
     m_pMapControl.MousePointer = esriControlsMousePointer.esriPointerArrow;
 }
        private void UnBind()
        {
            IMap2DView mapView = UCService.GetContent(typeof(Map2DView)) as Map2DView;

            if (mapView == null)
            {
                return;
            }
            mapView.UnBind(this);
            Map2DCommandManager.Pop();
        }
Ejemplo n.º 7
0
 public override void RestoreEnv()
 {
     Map2DCommandManager.Pop();
     mapView = UCService.GetContent(typeof(Map2DView)) as Map2DView;
     if (mapView == null)
     {
         return;
     }
     mapControlEvents.OnMouseDown -= new IMapControlEvents2_OnMouseDownEventHandler(map2DCommand.OnMouseDown);
     mapControlEvents.OnMouseUp   -= new IMapControlEvents2_OnMouseUpEventHandler(map2DCommand.OnMouseUp);
     mapControlEvents.OnMouseMove -= new IMapControlEvents2_OnMouseMoveEventHandler(map2DCommand.OnMouseMove);
     //mapView.UnBind(this);
     m_pMapControl.MousePointer = esriControlsMousePointer.esriPointerArrow;
 }
Ejemplo n.º 8
0
        public override void RestoreEnv()
        {
            IMap2DView mapView = UCService.GetContent(typeof(Map2DView)) as Map2DView;

            if (mapView == null)
            {
                return;
            }
            mapView.UnBind(this);
            DF2DApplication app = DF2DApplication.Application;

            if (app == null || app.Current2DMapControl == null)
            {
                return;
            }
            Map2DCommandManager.Pop();
        }
Ejemplo n.º 9
0
        public override void RestoreEnv()
        {
            if (this._uPanel != null)
            {
                this._uPanel.GetControlContainer().Controls.Clear();
                this._uPanel.Close();
                this._uPanel = null;
            }
            DF2DApplication app = DF2DApplication.Application;

            if (app == null)
            {
                return;
            }
            app.Current2DMapControl.ActiveView.FocusMap.ClearSelection();
            Map2DCommandManager.Pop();
        }
Ejemplo n.º 10
0
        public override void RestoreEnv()
        {
            IMap2DView      mapView = UCService.GetContent(typeof(Map2DView)) as Map2DView;
            DF2DApplication app     = DF2DApplication.Application;

            if (app == null || app.Current2DMapControl == null || app.Workbench == null)
            {
                return;
            }
            //app.Workbench.SetMenuEnable(true);
            app.Current2DMapControl.ActiveView.FocusMap.ClearSelection();
            if (mapView == null)
            {
                return;
            }
            mapView.UnBind(this);
            Map2DCommandManager.Pop();
        }
Ejemplo n.º 11
0
        public override void RestoreEnv()
        {
            try
            {
                IMap2DView mapView = UCService.GetContent(typeof(Map2DView)) as Map2DView;
                if (mapView == null) return;
                if (app == null || app.Current2DMapControl == null || app.Workbench == null) return;
                pGraphicsContainer.DeleteAllElements();
                app.Current2DMapControl.ActiveView.Refresh();
                mapView.UnBind(this);
                Map2DCommandManager.Pop();
            }
            catch (System.Exception ex)
            {

            }

        }
Ejemplo n.º 12
0
        public override void RestoreEnv()
        {
            IMap2DView mapView = UCService.GetContent(typeof(Map2DView)) as Map2DView;

            if (mapView == null)
            {
                return;
            }
            DF2DApplication app = DF2DApplication.Application;

            if (app == null || app.Current2DMapControl == null)
            {
                return;
            }
            IGraphicsContainer gc = app.Current2DMapControl.Map as IGraphicsContainer;

            gc.DeleteAllElements();
            app.Current2DMapControl.ActiveView.Refresh();
            mapView.UnBind(this);
            Map2DCommandManager.Pop();
        }
Ejemplo n.º 13
0
        public override void RestoreEnv()
        {
            if (this._uPanel != null)
            {
                this._uPanel.GetControlContainer().Controls.Clear();
                this._uPanel.Close();
                this._uPanel = null;
            }
            IMap2DView      mapView = UCService.GetContent(typeof(Map2DView)) as Map2DView;
            DF2DApplication app     = DF2DApplication.Application;

            if (app == null || app.Current2DMapControl == null)
            {
                return;
            }
            app.Current2DMapControl.ActiveView.FocusMap.ClearSelection();
            if (mapView == null)
            {
                return;
            }
            mapView.UnBind(this);
            Map2DCommandManager.Pop();
        }