Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/PropertyClasses/MacroStabilityInwardsSoilLayer2DProperties.cs =================================================================== diff -u -r69d647795daacbf48e17d0cf3a02a21865ab4ae6 -r353cb6e4be6475bbbc9ec71d867582bf3e9cee7d --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/PropertyClasses/MacroStabilityInwardsSoilLayer2DProperties.cs (.../MacroStabilityInwardsSoilLayer2DProperties.cs) (revision 69d647795daacbf48e17d0cf3a02a21865ab4ae6) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/PropertyClasses/MacroStabilityInwardsSoilLayer2DProperties.cs (.../MacroStabilityInwardsSoilLayer2DProperties.cs) (revision 353cb6e4be6475bbbc9ec71d867582bf3e9cee7d) @@ -27,25 +27,25 @@ using Core.Common.Gui.Converters; using Core.Common.Gui.PropertyBag; using Core.Common.Utils.Attributes; -using Ringtoets.MacroStabilityInwards.Data.SoilProfile; using Ringtoets.MacroStabilityInwards.Forms.Properties; +using Ringtoets.MacroStabilityInwards.Primitives; using RingtoetsCommonFormsResources = Ringtoets.Common.Forms.Properties.Resources; namespace Ringtoets.MacroStabilityInwards.Forms.PropertyClasses { /// - /// ViewModel of for properties panel. + /// ViewModel of for properties panel. /// [TypeConverter(typeof(ExpandableObjectConverter))] - public class MacroStabilityInwardsSoilLayer2DProperties : ObjectProperties + public class MacroStabilityInwardsSoilLayer2DProperties : ObjectProperties { /// /// Creates a new instance of . /// /// The 2D soil layer for which the properties are shown. /// Thrown when /// is null. - public MacroStabilityInwardsSoilLayer2DProperties(MacroStabilityInwardsSoilLayer2D soilLayer) + public MacroStabilityInwardsSoilLayer2DProperties(IMacroStabilityInwardsSoilLayer2D soilLayer) { if (soilLayer == null) { @@ -84,13 +84,13 @@ [PropertyOrder(3)] [TypeConverter(typeof(ExpandableArrayConverter))] [ResourcesCategory(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.Categories_General))] - [ResourcesDisplayName(typeof(Resources), nameof(Resources.SoilLayer_Holes_DisplayName))] - [ResourcesDescription(typeof(Resources), nameof(Resources.SoilLayer_Holes_Description))] - public RingProperties[] Holes + [ResourcesDisplayName(typeof(Resources), nameof(Resources.SoilLayer_NestedLayers_DisplayName))] + [ResourcesDescription(typeof(Resources), nameof(Resources.SoilLayer_NestedLayers_Description))] + public MacroStabilityInwardsSoilLayer2DProperties[] NestedLayers { get { - return data.Holes.Select(ring => new RingProperties(ring)).ToArray(); + return data.NestedLayers.Select(nestedLayer => new MacroStabilityInwardsSoilLayer2DProperties(nestedLayer)).ToArray(); } }