Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/DesignWaterLevelLocationsProperties.cs =================================================================== diff -u -r622768283f80b349b41e4de33d2f86fef8d989ac -ra4914458efa8ce67244c7743d5511080ac232dad --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/DesignWaterLevelLocationsProperties.cs (.../DesignWaterLevelLocationsProperties.cs) (revision 622768283f80b349b41e4de33d2f86fef8d989ac) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/DesignWaterLevelLocationsProperties.cs (.../DesignWaterLevelLocationsProperties.cs) (revision a4914458efa8ce67244c7743d5511080ac232dad) @@ -37,13 +37,21 @@ /// public class DesignWaterLevelLocationsProperties : HydraulicBoundaryLocationsProperties { + private readonly Func getCalculationFunc; + /// /// Creates a new instance of . /// /// The list of hydraulic boundary locations to set as data. - /// Thrown when is null. - public DesignWaterLevelLocationsProperties(ObservableList hydraulicBoundaryLocations) - : base(hydraulicBoundaryLocations) {} + /// for obtaining a + /// based on . + /// Thrown when any input parameter is null. + public DesignWaterLevelLocationsProperties(ObservableList hydraulicBoundaryLocations, + Func getCalculationFunc) + : base(hydraulicBoundaryLocations) + { + this.getCalculationFunc = getCalculationFunc; + } [TypeConverter(typeof(ExpandableArrayConverter))] [ResourcesCategory(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.Categories_General))] @@ -53,7 +61,7 @@ { get { - return data.Select(loc => new DesignWaterLevelLocationProperties(loc, loc.DesignWaterLevelCalculation)).ToArray(); + return data.Select(loc => new DesignWaterLevelLocationProperties(loc, getCalculationFunc(loc))).ToArray(); } } } Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/WaveHeightLocationsProperties.cs =================================================================== diff -u -r622768283f80b349b41e4de33d2f86fef8d989ac -ra4914458efa8ce67244c7743d5511080ac232dad --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/WaveHeightLocationsProperties.cs (.../WaveHeightLocationsProperties.cs) (revision 622768283f80b349b41e4de33d2f86fef8d989ac) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/WaveHeightLocationsProperties.cs (.../WaveHeightLocationsProperties.cs) (revision a4914458efa8ce67244c7743d5511080ac232dad) @@ -37,13 +37,21 @@ /// public class WaveHeightLocationsProperties : HydraulicBoundaryLocationsProperties { + private readonly Func getCalculationFunc; + /// /// Creates a new instance of . /// /// The hydraulic boundary locations to set as data. - /// Thrown when is null. - public WaveHeightLocationsProperties(ObservableList hydraulicBoundaryLocations) - : base(hydraulicBoundaryLocations) {} + /// for obtaining a + /// based on . + /// Thrown when any input parameter is null. + public WaveHeightLocationsProperties(ObservableList hydraulicBoundaryLocations, + Func getCalculationFunc) + : base(hydraulicBoundaryLocations) + { + this.getCalculationFunc = getCalculationFunc; + } [TypeConverter(typeof(ExpandableArrayConverter))] [ResourcesCategory(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.Categories_General))] @@ -53,7 +61,7 @@ { get { - return data.Select(loc => new WaveHeightLocationProperties(loc, loc.WaveHeightCalculation)).ToArray(); + return data.Select(loc => new WaveHeightLocationProperties(loc, getCalculationFunc(loc))).ToArray(); } } }