private void btnUpdate_Click(object sender, EventArgs e) { ESRI.ArcGIS.SystemUI.ICommand command = new ToolUpdateXZZ(this); command.OnCreate(DataEditCommon.g_pAxMapControl.Object); if (command.Enabled) { DataEditCommon.g_pAxMapControl.CurrentTool = (ESRI.ArcGIS.SystemUI.ITool)command; } }