예제 #1
0
 //工具条漫游
 private void buttonItemPan_Click(object sender, EventArgs e)
 {
     ESRI.ArcGIS.SystemUI.ICommand pCommand;
     pCommand = new ESRI.ArcGIS.Controls.ControlsMapPanToolClass();
     pCommand.OnCreate(MapControlLayer.Object);
     MapControlLayer.CurrentTool = pCommand as ESRI.ArcGIS.SystemUI.ITool;
 }
예제 #2
0
        public override void OnClick()
        {
            ICommand command = new ESRI.ArcGIS.Controls.ControlsMapPanToolClass();//平移

            command.OnCreate(m_mapControl.Object);
            m_mapControl.CurrentTool = command as ITool;//按钮按下的状态
        }
예제 #3
0
파일: baseOrder.cs 프로젝트: hehao1999/GIS
        public static void pan()
        {
            mainForm.mainform.mainMapControl.CurrentTool = null;
            ICommand command = new ESRI.ArcGIS.Controls.ControlsMapPanToolClass();

            command.OnCreate(mainForm.mainform.mainMapControl.Object);
            mainForm.mainform.mainMapControl.CurrentTool = command as ITool;
        }
예제 #4
0
        public void Pan(AxMapControl mapControl)
        {
            mapControl.CurrentTool = null;
            ICommand pCommand = new ESRI.ArcGIS.Controls.ControlsMapPanToolClass();

            pCommand.OnCreate(mapControl.Object);
            mapControl.CurrentTool = pCommand as ITool;
        }
예제 #5
0
파일: menu.cs 프로젝트: hijushen/WindowDemo
 public override void OnClick()
 {
     ICommand command = new ESRI.ArcGIS.Controls.ControlsMapPanToolClass();//ƽ��
     command.OnCreate(m_mapControl.Object);
     m_mapControl.CurrentTool = command as ITool;//��ť���µ�״̬
 }
예제 #6
0
 private void toolpan_Click(object sender, EventArgs e)//漫游
 {
     ESRI.ArcGIS.SystemUI.ICommand pCommand = new ESRI.ArcGIS.Controls.ControlsMapPanToolClass();
     pCommand.OnCreate(this.axMapControl1.Object);
     this.axMapControl1.CurrentTool = pCommand as ESRI.ArcGIS.SystemUI.ITool;
 }