Index: src/DeltaShell/DeltaShell.Plugins.SharpMapGis/Tools/ExportMapToImageMapTool.cs =================================================================== diff -u -r8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9 -r5fc71a385897af92ccb092f2f969b5709afab85a --- src/DeltaShell/DeltaShell.Plugins.SharpMapGis/Tools/ExportMapToImageMapTool.cs (.../ExportMapToImageMapTool.cs) (revision 8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9) +++ src/DeltaShell/DeltaShell.Plugins.SharpMapGis/Tools/ExportMapToImageMapTool.cs (.../ExportMapToImageMapTool.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a) @@ -12,38 +12,41 @@ { public override bool AlwaysActive { - get { return true; } + get + { + return true; + } } public override IEnumerable GetContextMenuItems(ICoordinate worldPosition) { var name = Resources.ExportMapToImageMapTool_OnBeforeContextMenu_Export_map_as_image; var exportAsImageMenuItem = new ToolStripMenuItem(name, Resources.exportIcon, ExportMapEventHandler); var zoomToExtentsMenuItem = new ToolStripMenuItem("Zoom to extents", Resources.MapZoomToExtentsImage, (s, e) => Map.ZoomToExtents()); - + return new[] + { + new MapToolContextMenuItem { - new MapToolContextMenuItem - { - Priority = 4, - MenuItem = zoomToExtentsMenuItem - }, - new MapToolContextMenuItem - { - Priority = 4, - MenuItem = exportAsImageMenuItem - } - }; + Priority = 4, + MenuItem = zoomToExtentsMenuItem + }, + new MapToolContextMenuItem + { + Priority = 4, + MenuItem = exportAsImageMenuItem + } + }; } - private void ExportMapEventHandler(object sender, EventArgs e) + public override void Execute() { - Execute(); + ExportImageHelper.ExportWithDialog(MapControl.Image); } - public override void Execute() + private void ExportMapEventHandler(object sender, EventArgs e) { - ExportImageHelper.ExportWithDialog(MapControl.Image); + Execute(); } } } \ No newline at end of file