private void clearSelection_click(object sender, EventArgs e) { ICommand cmd = new ControlsClearSelectionCommand(); cmd.OnCreate(this.mapControl.Object); cmd.OnClick(); }
/// <summary> /// 清除选择 /// </summary> public static void ClearSelect(AxMapControl axMapControl) { if (axMapControl == null) { return; } ICommand pCommand; pCommand = new ControlsClearSelectionCommand(); pCommand.OnCreate(axMapControl.Object); pCommand.OnClick(); }
// 清除选择 public static void ClearSelection(AxMapControl axMapControl) { if (axMapControl == null) { return; } ICommand pCommand; pCommand = new ControlsClearSelectionCommand(); pCommand.OnCreate(axMapControl.Object); pCommand.OnClick(); }