Index: Ringtoets/Common/src/Ringtoets.Common.Forms/PropertyClasses/SubMechanismIllustrationPointProperties.cs =================================================================== diff -u -rdf0dfaac54b07c9d3dc72b6db2d97f090b971314 -r9c8a4be86a9b3659738256e8f1c0542339d7b16a --- Ringtoets/Common/src/Ringtoets.Common.Forms/PropertyClasses/SubMechanismIllustrationPointProperties.cs (.../SubMechanismIllustrationPointProperties.cs) (revision df0dfaac54b07c9d3dc72b6db2d97f090b971314) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/PropertyClasses/SubMechanismIllustrationPointProperties.cs (.../SubMechanismIllustrationPointProperties.cs) (revision 9c8a4be86a9b3659738256e8f1c0542339d7b16a) @@ -20,6 +20,7 @@ // All rights reserved. using System; +using System.Collections.Generic; using System.ComponentModel; using System.Linq; using Core.Common.Gui.Attributes; @@ -41,26 +42,19 @@ /// /// Creates a new instance of . /// - /// The data to use for the properties. + /// The data to use for the properties. + /// The child nodes that belongs to the . /// String containing the wind direction for this illustration point. /// String containing the name of the closing situation. If empty /// the property will not be visible. /// Thrown when any input parameter is null. - /// Thrown when the - /// property of - /// is not of type . - public SubMechanismIllustrationPointProperties(IllustrationPointNode illustrationPointNode, + public SubMechanismIllustrationPointProperties(IllustrationPointBase illustrationPoint, + IEnumerable childNodes, string windDirection, string closingSituation) - : base(illustrationPointNode, windDirection, closingSituation) + : base(illustrationPoint, childNodes, windDirection, closingSituation) { - var illustrationPoint = data.Data as SubMechanismIllustrationPoint; - if (illustrationPoint == null) - { - throw new ArgumentException($"{nameof(illustrationPointNode)} type has to be {nameof(SubMechanismIllustrationPoint)}"); - } - - subMechanismIllustrationPoint = illustrationPoint; + subMechanismIllustrationPoint = (SubMechanismIllustrationPoint) data; } [PropertyOrder(4)]