Index: Core/Plugins/src/Core.Plugins.Map/MapPlugin.cs =================================================================== diff -u -r40f8f3426304293fa0f280caf96e7332527e3dbf -rd5e1c0cbaee6d5b1f8c766dc18cca4b787da1878 --- Core/Plugins/src/Core.Plugins.Map/MapPlugin.cs (.../MapPlugin.cs) (revision 40f8f3426304293fa0f280caf96e7332527e3dbf) +++ Core/Plugins/src/Core.Plugins.Map/MapPlugin.cs (.../MapPlugin.cs) (revision d5e1c0cbaee6d5b1f8c766dc18cca4b787da1878) @@ -85,7 +85,7 @@ }; yield return new PropertyInfo { - CreateInstance = context => new MapPolygonDataProperties((MapPolygonData)context.WrappedData) + CreateInstance = context => new MapPolygonDataProperties((MapPolygonData)context.WrappedData, MapDataContextHelper.GetParentsFromContext(context)) }; } Index: Core/Plugins/src/Core.Plugins.Map/PropertyClasses/MapPolygonDataProperties.cs =================================================================== diff -u -r244f2dbdf68c80631424c7b979660336937171bf -rd5e1c0cbaee6d5b1f8c766dc18cca4b787da1878 --- Core/Plugins/src/Core.Plugins.Map/PropertyClasses/MapPolygonDataProperties.cs (.../MapPolygonDataProperties.cs) (revision 244f2dbdf68c80631424c7b979660336937171bf) +++ Core/Plugins/src/Core.Plugins.Map/PropertyClasses/MapPolygonDataProperties.cs (.../MapPolygonDataProperties.cs) (revision d5e1c0cbaee6d5b1f8c766dc18cca4b787da1878) @@ -20,6 +20,7 @@ // All rights reserved. using System; +using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Drawing.Design; @@ -40,11 +41,11 @@ /// /// Creates a new instance of . /// - /// The to - /// show the properties for. - /// Thrown when - /// is null. - public MapPolygonDataProperties(MapPolygonData mapPolygonData) + /// The to show the properties for. + /// A collection containing all parent of + /// the . + /// Thrown when any parameter is null. + public MapPolygonDataProperties(MapPolygonData mapPolygonData, IEnumerable parents) : base(mapPolygonData) {} public override string Type Index: Core/Plugins/test/Core.Plugins.Map.Test/PropertyClasses/MapPolygonDataPropertiesTest.cs =================================================================== diff -u -rc6d693f5d253e9bb88d5f18656741e0ee7b07fe5 -rd5e1c0cbaee6d5b1f8c766dc18cca4b787da1878 --- Core/Plugins/test/Core.Plugins.Map.Test/PropertyClasses/MapPolygonDataPropertiesTest.cs (.../MapPolygonDataPropertiesTest.cs) (revision c6d693f5d253e9bb88d5f18656741e0ee7b07fe5) +++ Core/Plugins/test/Core.Plugins.Map.Test/PropertyClasses/MapPolygonDataPropertiesTest.cs (.../MapPolygonDataPropertiesTest.cs) (revision d5e1c0cbaee6d5b1f8c766dc18cca4b787da1878) @@ -54,7 +54,7 @@ var data = new MapPolygonData("test"); // Call - var properties = new MapPolygonDataProperties(data); + var properties = new MapPolygonDataProperties(data, Enumerable.Empty()); // Assert Assert.IsInstanceOf>(properties); @@ -82,7 +82,7 @@ }; // Call - var properties = new MapPolygonDataProperties(mapPolygonData); + var properties = new MapPolygonDataProperties(mapPolygonData, Enumerable.Empty()); // Assert PropertyDescriptorCollection dynamicProperties = PropertiesTestHelper.GetAllVisiblePropertyDescriptors(properties); @@ -126,7 +126,7 @@ }; // Call - var properties = new MapPolygonDataProperties(mapPolygonData); + var properties = new MapPolygonDataProperties(mapPolygonData, Enumerable.Empty()); // Assert PropertyDescriptorCollection dynamicProperties = PropertiesTestHelper.GetAllVisiblePropertyDescriptors(properties); @@ -164,7 +164,7 @@ }); // Call - var properties = new MapPolygonDataProperties(mapPolygonData); + var properties = new MapPolygonDataProperties(mapPolygonData, Enumerable.Empty()); // Assert Assert.AreEqual(mapPolygonData.ShowLabels, properties.ShowLabels); @@ -195,7 +195,7 @@ mapPolygonData.Attach(observer); - var properties = new MapPolygonDataProperties(mapPolygonData); + var properties = new MapPolygonDataProperties(mapPolygonData, Enumerable.Empty()); Color newFillColor = Color.Blue; Color newStrokeColor = Color.Red; @@ -233,7 +233,7 @@ } }; - var properties = new MapPolygonDataProperties(mapData); + var properties = new MapPolygonDataProperties(mapData, Enumerable.Empty()); // Call bool isShowLabelReadOnly = properties.DynamicReadonlyValidator( @@ -262,7 +262,7 @@ : null }; - var properties = new MapPolygonDataProperties(mapData); + var properties = new MapPolygonDataProperties(mapData, Enumerable.Empty()); // Call bool isStrokeColorReadOnly = properties.DynamicReadonlyValidator( @@ -294,7 +294,7 @@ }) }; - var properties = new MapPolygonDataProperties(mapPolygonData); + var properties = new MapPolygonDataProperties(mapPolygonData, Enumerable.Empty()); // Call bool isOtherPropertyReadOnly = properties.DynamicReadonlyValidator(string.Empty); @@ -314,7 +314,7 @@ ShowLabels = showLabels }; - var properties = new MapPolygonDataProperties(mapPolygonData); + var properties = new MapPolygonDataProperties(mapPolygonData, Enumerable.Empty()); // Call bool isSelectedMetaDataAttributeVisible = properties.DynamicVisibleValidationMethod( @@ -340,7 +340,7 @@ : null }; - var properties = new MapPolygonDataProperties(mapPolygonData); + var properties = new MapPolygonDataProperties(mapPolygonData, Enumerable.Empty()); // Call bool isFillColorVisible = properties.DynamicVisibleValidationMethod( @@ -372,7 +372,7 @@ }) }; - var properties = new MapPolygonDataProperties(mapPolygonData); + var properties = new MapPolygonDataProperties(mapPolygonData, Enumerable.Empty()); // Call bool isOtherPropertyVisible = properties.DynamicVisibleValidationMethod(string.Empty);