Пример #1
0
        /// <summary>
        /// 放大缩小:实例化Icommand类中的控制地图放缩的方法,创建在axGlobalControl中,点击鼠标实现
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void inOut_Click_1(object sender, EventArgs e)
        {
            ICommand cmd = new ControlsGlobeZoomInOutToolClass();

            cmd.OnCreate(axGlobeControl1.Object);
            cmd.OnClick();
            axGlobeControl1.CurrentTool = cmd as ITool;
        }
Пример #2
0
        //快速缩放
        public static void ZoomInZoomOut(AxGlobeControl _axGlobeControl)
        {
            ICommand pCommand;

            pCommand = new ControlsGlobeZoomInOutToolClass();
            pCommand.OnCreate(_axGlobeControl.Object);
            _axGlobeControl.CurrentTool = (ITool)pCommand;
        }
Пример #3
0
 //快速缩放
 public static void ZoomInZoomOut(AxGlobeControl _axGlobeControl)
 {
     ICommand pCommand;
     pCommand = new ControlsGlobeZoomInOutToolClass();
     pCommand.OnCreate(_axGlobeControl.Object);
     _axGlobeControl.CurrentTool = (ITool)pCommand;
 }