Exemple #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;
 }
Exemple #2
0
        public override void OnClick()
        {
            ICommand command = new ESRI.ArcGIS.Controls.ControlsMapPanToolClass();//平移

            command.OnCreate(m_mapControl.Object);
            m_mapControl.CurrentTool = command as ITool;//按钮按下的状态
        }
Exemple #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;
        }
Exemple #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;
        }
Exemple #5
0
 public override void OnClick()
 {
     ICommand command = new ESRI.ArcGIS.Controls.ControlsMapPanToolClass();//ƽ��
     command.OnCreate(m_mapControl.Object);
     m_mapControl.CurrentTool = command as ITool;//��ť���µ�״̬
 }
Exemple #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;
 }