Esempio n. 1
0
        private void 进行选择ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ICommand pCommand;

            pCommand = new ESRI.ArcGIS.Controls.ControlsSelectFeaturesToolClass();
            if (tabControl1.SelectedTab == tabPage1)
            {
                pCommand.OnCreate(axMapControl1.Object);
            }
            axMapControl1.CurrentTool = pCommand as ESRI.ArcGIS.SystemUI.ITool;
        }
Esempio n. 2
0
 private void 进行选择ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ICommand pCommand;
     pCommand = new ESRI.ArcGIS.Controls.ControlsSelectFeaturesToolClass();
     if (tabControl1.SelectedTab == tabPage1)
         pCommand.OnCreate(axMapControl1.Object);
     axMapControl1.CurrentTool = pCommand as ESRI.ArcGIS.SystemUI.ITool;
 }