Index: src/DeltaShell/DeltaShell.Plugins.SharpMapGis.Gui/Forms/GridProperties/VectorLayerPolygonProperties.cs =================================================================== diff -u -r18f9b18cab9da0c768badb3084415e993a5414ee -r5fc71a385897af92ccb092f2f969b5709afab85a --- src/DeltaShell/DeltaShell.Plugins.SharpMapGis.Gui/Forms/GridProperties/VectorLayerPolygonProperties.cs (.../VectorLayerPolygonProperties.cs) (revision 18f9b18cab9da0c768badb3084415e993a5414ee) +++ src/DeltaShell/DeltaShell.Plugins.SharpMapGis.Gui/Forms/GridProperties/VectorLayerPolygonProperties.cs (.../VectorLayerPolygonProperties.cs) (revision 5fc71a385897af92ccb092f2f969b5709afab85a) @@ -17,41 +17,35 @@ [ResourcesDisplayName(typeof(Resources), "VectorLayerPolygonProperties_DisplayName")] public class VectorLayerPolygonProperties : PolygonStylePropertiesBase { - [Browsable(false)] - protected override VectorStyle Style - { - get { return data.Style; } - } - - [DynamicVisibleValidationMethod] - public override bool IsPropertyVisible(string propertyName) - { - return data.Theme == null; - } - - [DynamicReadOnlyValidationMethod] - public bool OnIsLayerNameReadOnly(string propertyName) - { - return data.NameIsReadOnly; - } - [DynamicReadOnly] [ResourcesCategory(typeof(Resources), "Categories_General")] [ResourcesDisplayName(typeof(Resources), "Common_Name_DisplayName")] [ResourcesDescription(typeof(Resources), "VectorLayerProperties_Name_Description")] public string Name { - get { return data.Name; } - set { data.Name = value; } + get + { + return data.Name; + } + set + { + data.Name = value; + } } [ResourcesCategory(typeof(Resources), "Categories_General")] [DisplayName("Opacity")] [Description("Defines the layer opacity, expressed as a value between 0.0 and 1.0. A value of 0.0 indicates fully transparent, whereas a value of 1.0 indicates fully opaque.")] public float Opacity { - get { return data.Opacity; } - set { data.Opacity = (float)Math.Min(1.0, Math.Max(0.0, value)); } + get + { + return data.Opacity; + } + set + { + data.Opacity = (float) Math.Min(1.0, Math.Max(0.0, value)); + } } [Category("Coordinates")] @@ -61,7 +55,10 @@ [Editor(typeof(CoordinateSystemTypeEditor), typeof(UITypeEditor))] public ICoordinateSystem CoordinateSystem { - get { return data.CoordinateSystem; } + get + { + return data.CoordinateSystem; + } set { try @@ -76,5 +73,25 @@ } } + [DynamicReadOnlyValidationMethod] + public bool OnIsLayerNameReadOnly(string propertyName) + { + return data.NameIsReadOnly; + } + + [DynamicVisibleValidationMethod] + public override bool IsPropertyVisible(string propertyName) + { + return data.Theme == null; + } + + [Browsable(false)] + protected override VectorStyle Style + { + get + { + return data.Style; + } + } } } \ No newline at end of file