Index: Ringtoets/Common/src/Ringtoets.Common.Forms/PropertyClasses/FaultTreeIllustrationPointProperties.cs =================================================================== diff -u -r2eab6260ad63e806b10647d64792294139dc2157 -r9c8a4be86a9b3659738256e8f1c0542339d7b16a --- Ringtoets/Common/src/Ringtoets.Common.Forms/PropertyClasses/FaultTreeIllustrationPointProperties.cs (.../FaultTreeIllustrationPointProperties.cs) (revision 2eab6260ad63e806b10647d64792294139dc2157) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/PropertyClasses/FaultTreeIllustrationPointProperties.cs (.../FaultTreeIllustrationPointProperties.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,23 +42,17 @@ /// /// 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 FaultTreeIllustrationPointProperties( - IllustrationPointNode illustrationPointNode, string windDirection, string closingSituation) : base(illustrationPointNode, windDirection, closingSituation) + public FaultTreeIllustrationPointProperties(IllustrationPointBase illustrationPoint, IEnumerable childNodes, + string windDirection, string closingSituation) + : base(illustrationPoint, childNodes, windDirection, closingSituation) { - var illustrationPoint = data.Data as FaultTreeIllustrationPoint; - if (illustrationPoint == null) - { - throw new ArgumentException($"{nameof(illustrationPointNode)} type has to be {nameof(FaultTreeIllustrationPoint)}"); - } - - faultTreeIllustrationPoint = illustrationPoint; + faultTreeIllustrationPoint = (FaultTreeIllustrationPoint) data; } [PropertyOrder(4)]