private void zoomToSelection_click(object sender, EventArgs e) { ICommand cmd = new ControlsZoomToSelectedCommand(); cmd.OnCreate(this.mapControl.Object); cmd.OnClick(); }
// 放大到选择对象 public static void ZoomToSelected(AxMapControl axMapControl) { if (axMapControl == null) { return; } ICommand pCommand; pCommand = new ControlsZoomToSelectedCommand(); pCommand.OnCreate(axMapControl.Object); pCommand.OnClick(); }
// 放大到选择对象 public static void ZoomToSelected(AxMapControl axMapControl) { if (axMapControl == null) { return; } ICommand pCommand; pCommand = new ControlsZoomToSelectedCommand(); pCommand.OnCreate(axMapControl.Object); pCommand.OnClick(); }