//后一视图 private void Btn_ViewBack_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { ICommand cmd = new ControlsMapZoomToLastExtentForwardCommand(); cmd.OnCreate(axMapControl_1.Object); axMapControl_1.CurrentTool = cmd as ITool; }
//下一视图 private void Btn_Next_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { ICommand Cmd = new ControlsMapZoomToLastExtentForwardCommand(); Cmd.OnCreate(this.axMapControl1.Object); Cmd.OnClick(); }
//下一场景 public static void ZoomToLastExtentForward(ESRI.ArcGIS.Controls.AxMapControl axMapControl) { if (axMapControl == null) { return; } ICommand pCommand; pCommand = new ControlsMapZoomToLastExtentForwardCommand(); pCommand.OnCreate(axMapControl.Object); pCommand.OnClick(); }
/// <summary> /// 下一视图 /// </summary> public static void MapNextView(AxMapControl axMapControl) { if (axMapControl == null) { return; } ICommand pCommand; pCommand = new ControlsMapZoomToLastExtentForwardCommand(); pCommand.OnCreate(axMapControl.Object); pCommand.OnClick(); // pCommand=new ControlsEditingEditToolClass }
private void toolStripButton7_Click(object sender, EventArgs e) { ICommand pCommand = new ControlsMapZoomToLastExtentForwardCommand(); pCommand.OnCreate(this.axMapControl1.Object); pCommand.OnClick(); }