namespace DeltaShell.Plugins.SharpMapGis.Gui.Commands { public class MapZoomNextCommand: MapZoomHistoryCommand { protected override void OnExecute(params object[] arguments) { ZoomHistoryToolMapTool.NextZoomState(); MapView.MapControl.Refresh(); base.OnExecute(arguments); } public override bool Enabled { get { if (MapView == null) { return false; } return ZoomHistoryToolMapTool.RedoCount > 0; } } } }