private void btnSelectFeatures_MapControl_Click(object sender, EventArgs e) { ControlsSelectFeaturesTool MapPanTool = new ESRI.ArcGIS.Controls.ControlsSelectFeaturesTool(); MapPanTool.OnCreate(MapControl.Object); MapPanTool.OnClick(); MapControl.CurrentTool = (ESRI.ArcGIS.SystemUI.ITool)MapPanTool; }
private void btnSelectAll_GlobeControl_Click(object sender, EventArgs e) { ControlsSelectFeaturesTool GlobePanTool = new ESRI.ArcGIS.Controls.ControlsSelectFeaturesTool(); GlobePanTool.OnCreate(GlobeControl.Object); GlobePanTool.OnClick(); GlobeControl.CurrentTool = (ESRI.ArcGIS.SystemUI.ITool)GlobePanTool; }