Index: src/DeltaShell/DeltaShell.Plugins.SharpMapGis.Gui/Forms/GridProperties/VectorStyleProperties.cs =================================================================== diff -u -r8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9 -r5fc71a385897af92ccb092f2f969b5709afab85a --- src/DeltaShell/DeltaShell.Plugins.SharpMapGis.Gui/Forms/GridProperties/VectorStyleProperties.cs (.../VectorStyleProperties.cs) (revision 8f6ae890fed8e8eae3a32f9c0498a10f82e0ddf9) +++ src/DeltaShell/DeltaShell.Plugins.SharpMapGis.Gui/Forms/GridProperties/VectorStyleProperties.cs (.../VectorStyleProperties.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a) @@ -22,17 +22,35 @@ [ResourcesDescription(typeof(Resources), "VectorLayerProperties_LineColor_Description")] public Color LineColor { - get { return data.Line.Color; } - set { data.Line = new Pen(value, data.Line.Width) { DashStyle = data.Line.DashStyle }; } + get + { + return data.Line.Color; + } + set + { + data.Line = new Pen(value, data.Line.Width) + { + DashStyle = data.Line.DashStyle + }; + } } [ResourcesCategory(typeof(Resources), "Categories_Style")] [ResourcesDisplayName(typeof(Resources), "LineStyleProperies_Width_DisplayName")] [ResourcesDescription(typeof(Resources), "LineStyleProperies_Width_Description")] public float Width { - get { return data.Line.Width; } - set { data.Line = new Pen(data.Line.Color, MathUtils.ClipValue(value, MinimumAllowedSize, MaximumAllowedSize)) { DashStyle = data.Line.DashStyle }; } + get + { + return data.Line.Width; + } + set + { + data.Line = new Pen(data.Line.Color, MathUtils.ClipValue(value, MinimumAllowedSize, MaximumAllowedSize)) + { + DashStyle = data.Line.DashStyle + }; + } } [ResourcesCategory(typeof(Resources), "Categories_Style")] @@ -41,26 +59,50 @@ [Editor(typeof(BorderStyleEditor), typeof(UITypeEditor))] public DashStyle LineStyle { - get { return data.Line.DashStyle; } - set { data.Line.DashStyle = data.Line.DashStyle; } + get + { + return data.Line.DashStyle; + } + set + { + data.Line.DashStyle = data.Line.DashStyle; + } } [ResourcesCategory(typeof(Resources), "Categories_Style")] [ResourcesDisplayName(typeof(Resources), "PointStyleProperties_OutlineColor_DisplayName")] [ResourcesDescription(typeof(Resources), "VectorLayerProperties_OutlineColor_Description")] public Color OutlineColor { - get { return data.Outline.Color; } - set { data.Outline = new Pen(value, data.Outline.Width) {DashStyle = data.Outline.DashStyle}; } + get + { + return data.Outline.Color; + } + set + { + data.Outline = new Pen(value, data.Outline.Width) + { + DashStyle = data.Outline.DashStyle + }; + } } [ResourcesCategory(typeof(Resources), "Categories_Style")] [ResourcesDisplayName(typeof(Resources), "PointStyleProperties_OutlineWidth_DisplayName")] [ResourcesDescription(typeof(Resources), "VectorLayerProperties_OutlineWidth_Description")] public float OutlineWidth { - get { return data.Outline.Width; } - set { data.Outline = new Pen(data.Outline.Color, MathUtils.ClipValue(value, MinimumAllowedSize, MaximumAllowedSize)) { DashStyle = data.Outline.DashStyle }; } + get + { + return data.Outline.Width; + } + set + { + data.Outline = new Pen(data.Outline.Color, MathUtils.ClipValue(value, MinimumAllowedSize, MaximumAllowedSize)) + { + DashStyle = data.Outline.DashStyle + }; + } } [ResourcesCategory(typeof(Resources), "Categories_Style")] @@ -69,41 +111,68 @@ [Editor(typeof(BorderStyleEditor), typeof(UITypeEditor))] public DashStyle OutlineStyle { - get { return data.Outline.DashStyle; } - set { data.Outline.DashStyle = data.Outline.DashStyle; } + get + { + return data.Outline.DashStyle; + } + set + { + data.Outline.DashStyle = data.Outline.DashStyle; + } } [ResourcesCategory(typeof(Resources), "Categories_Style")] [ResourcesDisplayName(typeof(Resources), "PointStyleProperties_EnableOutline_DisplayName")] [ResourcesDescription(typeof(Resources), "VectorStyleProperties_EnableOutline_Description")] public bool EnableOutline { - get { return data.EnableOutline; } - set { data.EnableOutline = value; } + get + { + return data.EnableOutline; + } + set + { + data.EnableOutline = value; + } } [ResourcesCategory(typeof(Resources), "Categories_Style")] [ResourcesDisplayName(typeof(Resources), "VectorLayerProperties_FillColor_DisplayName")] [ResourcesDescription(typeof(Resources), "VectorLayerProperties_FillColor_Description")] public Color FillColor { - get { return ((SolidBrush)data.Fill).Color; } - set { data.Fill = new SolidBrush(value); } + get + { + return ((SolidBrush) data.Fill).Color; + } + set + { + data.Fill = new SolidBrush(value); + } } [ResourcesCategory(typeof(Resources), "Categories_Style")] [ResourcesDisplayName(typeof(Resources), "PointStyleProperties_Symbol_DisplayName")] [ResourcesDescription(typeof(Resources), "PointStyleProperties_Symbol_Description")] public Bitmap Image { - get { return data.Symbol; } - set { data.Symbol = value; } + get + { + return data.Symbol; + } + set + { + data.Symbol = value; + } } [Browsable(false)] public VectorStyle Style { - get { return data; } + get + { + return data; + } } [ResourcesCategory(typeof(Resources), "Categories_Style")] @@ -112,17 +181,29 @@ [Editor(typeof(ShapeTypeEditor), typeof(UITypeEditor))] public Shape.eShape? Shape { - get { return data.Shape != null ? (Shape.eShape?) ((Shape.eShape) Enum.Parse(typeof (Shape.eShape), data.Shape.ToString())) : null; } - set { data.Shape = (ShapeType) Enum.Parse(typeof(ShapeType), value.ToString()); } + get + { + return data.Shape != null ? (Shape.eShape?) ((Shape.eShape) Enum.Parse(typeof(Shape.eShape), data.Shape.ToString())) : null; + } + set + { + data.Shape = (ShapeType) Enum.Parse(typeof(ShapeType), value.ToString()); + } } [ResourcesCategory(typeof(Resources), "Categories_Style")] [ResourcesDisplayName(typeof(Resources), "PointStyleProperties_ShapeSize_DisplayName")] [ResourcesDescription(typeof(Resources), "PointStyleProperties_ShapeSize_Description")] public int ShapeSize { - get { return data.ShapeSize; } - set { data.ShapeSize = value; } + get + { + return data.ShapeSize; + } + set + { + data.ShapeSize = value; + } } } } \ No newline at end of file