Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/WaveHeightLocationsProperties.cs =================================================================== diff -u -r89d783c45859b97159947c0cd163ef1b76ad61df -r35e1698004b87d0434fdf0b65d19b65783da9eea --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/WaveHeightLocationsProperties.cs (.../WaveHeightLocationsProperties.cs) (revision 89d783c45859b97159947c0cd163ef1b76ad61df) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/WaveHeightLocationsProperties.cs (.../WaveHeightLocationsProperties.cs) (revision 35e1698004b87d0434fdf0b65d19b65783da9eea) @@ -32,32 +32,19 @@ namespace Ringtoets.Integration.Forms.PropertyClasses { /// - /// ViewModel of an enumeration of with + /// ViewModel of an enumeration of with /// a wave height calculation result for properties panel. /// public class WaveHeightLocationsProperties : HydraulicBoundaryLocationsProperties { - private readonly Func getCalculationFunc; - /// /// Creates a new instance of . /// - /// The hydraulic boundary locations to set as data. - /// for obtaining a - /// based on . - /// Thrown when any input parameter is null. - public WaveHeightLocationsProperties(ObservableList hydraulicBoundaryLocations, - Func getCalculationFunc) - : base(hydraulicBoundaryLocations) - { - if (getCalculationFunc == null) - { - throw new ArgumentNullException(nameof(getCalculationFunc)); - } + /// The list of hydraulic boundary location calculations to set as data. + /// Thrown when is null. + public WaveHeightLocationsProperties(ObservableList hydraulicBoundaryLocationCalculations) + : base(hydraulicBoundaryLocationCalculations) {} - this.getCalculationFunc = getCalculationFunc; - } - [TypeConverter(typeof(ExpandableArrayConverter))] [ResourcesCategory(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.Categories_General))] [ResourcesDisplayName(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.HydraulicBoundaryDatabase_Locations_DisplayName))] @@ -66,7 +53,7 @@ { get { - return data.Select(loc => new WaveHeightLocationProperties(getCalculationFunc(loc))).ToArray(); + return data.Select(calculation => new WaveHeightLocationProperties(calculation)).ToArray(); } } }