Index: Core/Plugins/src/Core.Plugins.Map/MapPlugin.cs =================================================================== diff -u -r87e770a5eabde4a4536a839eb1feb333f2fccd4a -r149fd073562b9a48f1b5207984108b875d7dcbf1 --- Core/Plugins/src/Core.Plugins.Map/MapPlugin.cs (.../MapPlugin.cs) (revision 87e770a5eabde4a4536a839eb1feb333f2fccd4a) +++ Core/Plugins/src/Core.Plugins.Map/MapPlugin.cs (.../MapPlugin.cs) (revision 149fd073562b9a48f1b5207984108b875d7dcbf1) @@ -77,15 +77,15 @@ }; yield return new PropertyInfo { - CreateInstance = data => new MapPointDataProperties((MapPointData) data.WrappedData) + CreateInstance = context => new MapPointDataProperties((MapPointData) context.WrappedData, MapDataContextHelper.GetParentsFromContext(context)) }; yield return new PropertyInfo { - CreateInstance = data => new MapLineDataProperties((MapLineData) data.WrappedData) + CreateInstance = context => new MapLineDataProperties((MapLineData)context.WrappedData) }; yield return new PropertyInfo { - CreateInstance = data => new MapPolygonDataProperties((MapPolygonData) data.WrappedData) + CreateInstance = context => new MapPolygonDataProperties((MapPolygonData)context.WrappedData) }; } Index: Core/Plugins/src/Core.Plugins.Map/PropertyClasses/MapPointDataProperties.cs =================================================================== diff -u -r244f2dbdf68c80631424c7b979660336937171bf -r149fd073562b9a48f1b5207984108b875d7dcbf1 --- Core/Plugins/src/Core.Plugins.Map/PropertyClasses/MapPointDataProperties.cs (.../MapPointDataProperties.cs) (revision 244f2dbdf68c80631424c7b979660336937171bf) +++ Core/Plugins/src/Core.Plugins.Map/PropertyClasses/MapPointDataProperties.cs (.../MapPointDataProperties.cs) (revision 149fd073562b9a48f1b5207984108b875d7dcbf1) @@ -20,6 +20,7 @@ // All rights reserved. using System; +using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Drawing.Design; @@ -42,11 +43,11 @@ /// /// Creates a new instance of . /// - /// The to - /// show the properties for. - /// Thrown when - /// is null. - public MapPointDataProperties(MapPointData mapPointData) + /// The to show the properties for. + /// A collection containing all parent of + /// the . + /// Thrown when any parameter is null. + public MapPointDataProperties(MapPointData mapPointData, IEnumerable parents) : base(mapPointData) {} public override string Type Index: Core/Plugins/test/Core.Plugins.Map.Test/PropertyClasses/MapPointDataPropertiesTest.cs =================================================================== diff -u -r4e9e0c4e35babe8886cdc7b1fe675fed1f118364 -r149fd073562b9a48f1b5207984108b875d7dcbf1 --- Core/Plugins/test/Core.Plugins.Map.Test/PropertyClasses/MapPointDataPropertiesTest.cs (.../MapPointDataPropertiesTest.cs) (revision 4e9e0c4e35babe8886cdc7b1fe675fed1f118364) +++ Core/Plugins/test/Core.Plugins.Map.Test/PropertyClasses/MapPointDataPropertiesTest.cs (.../MapPointDataPropertiesTest.cs) (revision 149fd073562b9a48f1b5207984108b875d7dcbf1) @@ -59,7 +59,7 @@ var data = new MapPointData("test"); // Call - var properties = new MapPointDataProperties(data); + var properties = new MapPointDataProperties(data, Enumerable.Empty()); // Assert Assert.IsInstanceOf>(properties); @@ -88,7 +88,7 @@ }; // Call - var properties = new MapPointDataProperties(mapPointData); + var properties = new MapPointDataProperties(mapPointData, Enumerable.Empty()); // Assert PropertyDescriptorCollection dynamicProperties = PropertiesTestHelper.GetAllVisiblePropertyDescriptors(properties); @@ -144,7 +144,7 @@ }; // Call - var properties = new MapPointDataProperties(mapPointData); + var properties = new MapPointDataProperties(mapPointData, Enumerable.Empty()); // Assert PropertyDescriptorCollection dynamicProperties = PropertiesTestHelper.GetAllVisiblePropertyDescriptors(properties); @@ -199,7 +199,7 @@ }); // Call - var properties = new MapPointDataProperties(mapPointData); + var properties = new MapPointDataProperties(mapPointData, Enumerable.Empty()); // Assert Assert.AreEqual(mapPointData.ShowLabels, properties.ShowLabels); @@ -235,7 +235,7 @@ mapPointData.Attach(observer); - var properties = new MapPointDataProperties(mapPointData); + var properties = new MapPointDataProperties(mapPointData, Enumerable.Empty()); Color newColor = Color.Blue; Color newStrokeColor = Color.Aquamarine; @@ -279,7 +279,7 @@ } }; - var properties = new MapPointDataProperties(mapData); + var properties = new MapPointDataProperties(mapData, Enumerable.Empty()); // Call bool isShowLabelReadOnly = properties.DynamicReadonlyValidator( @@ -308,7 +308,7 @@ : null }; - var properties = new MapPointDataProperties(mapData); + var properties = new MapPointDataProperties(mapData, Enumerable.Empty()); // Call bool isWidthReadOnly = properties.DynamicReadonlyValidator( @@ -346,7 +346,7 @@ }) }; - var properties = new MapPointDataProperties(mapPointData); + var properties = new MapPointDataProperties(mapPointData, Enumerable.Empty()); // Call bool isOtherPropertyReadOnly = properties.DynamicReadonlyValidator(string.Empty); @@ -366,7 +366,7 @@ ShowLabels = showLabels }; - var properties = new MapPointDataProperties(mapPointData); + var properties = new MapPointDataProperties(mapPointData, Enumerable.Empty()); // Call bool isSelectedMetaDataAttributeVisible = properties.DynamicVisibleValidationMethod( @@ -392,7 +392,7 @@ : null }; - var properties = new MapPointDataProperties(mapPointData); + var properties = new MapPointDataProperties(mapPointData, Enumerable.Empty()); // Call bool isMapThemeAttributeNameVisible = properties.DynamicVisibleValidationMethod( @@ -424,7 +424,7 @@ }) }; - var properties = new MapPointDataProperties(mapPointData); + var properties = new MapPointDataProperties(mapPointData, Enumerable.Empty()); // Call bool isOtherPropertyVisible = properties.DynamicVisibleValidationMethod(string.Empty);