示例#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
        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
 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;
 }