Index: src/DeltaShell/DeltaShell.Plugins.SharpMapGis.Gui/Commands/MapZoomToExtentsCommand.cs =================================================================== diff -u -r8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9 -r5fc71a385897af92ccb092f2f969b5709afab85a --- src/DeltaShell/DeltaShell.Plugins.SharpMapGis.Gui/Commands/MapZoomToExtentsCommand.cs (.../MapZoomToExtentsCommand.cs) (revision 8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9) +++ src/DeltaShell/DeltaShell.Plugins.SharpMapGis.Gui/Commands/MapZoomToExtentsCommand.cs (.../MapZoomToExtentsCommand.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a) @@ -4,6 +4,14 @@ { public class MapZoomToExtentsCommand : MapViewCommand { + public override bool Checked + { + get + { + return false; + } + set {} + } /// /// if arguments is null the active mapview will zoom to it's default extents. @@ -13,28 +21,22 @@ protected override void OnExecute(params object[] arguments) { MapView targetView = null; - if(arguments.Length == 1)//target extent + if (arguments.Length == 1) //target extent { targetView = arguments[0] as MapView; } MapView activeView = SharpMapGisGuiPlugin.GetFocusedMapView(); - if(targetView != null) + if (targetView != null) { activeView.Map.ZoomToFit(targetView.Map.Envelope); } - else + else { activeView.Map.ZoomToExtents(); } activeView.MapControl.Refresh(); } - - public override bool Checked - { - get { return false; } - set { } - } } } \ No newline at end of file