Index: Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/Views/GrassCoverErosionOutwardsWaveHeightLocationsView.cs =================================================================== diff -u -r5677f0f28cb43bd9fbe0ebe3e5556b841d5d5695 -r5c823d529eb2fcbf28cecd468b056de07fdb1c11 --- Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/Views/GrassCoverErosionOutwardsWaveHeightLocationsView.cs (.../GrassCoverErosionOutwardsWaveHeightLocationsView.cs) (revision 5677f0f28cb43bd9fbe0ebe3e5556b841d5d5695) +++ Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/Views/GrassCoverErosionOutwardsWaveHeightLocationsView.cs (.../GrassCoverErosionOutwardsWaveHeightLocationsView.cs) (revision 5c823d529eb2fcbf28cecd468b056de07fdb1c11) @@ -49,13 +49,16 @@ /// Creates a new instance of . /// /// The failure mechanism that the locations belong to. + /// for obtaining a + /// based on . /// The assessment section that the locations belong to. /// for getting the norm to derive a mechanism specific norm from. /// Thrown when any input parameter is null. public GrassCoverErosionOutwardsWaveHeightLocationsView(GrassCoverErosionOutwardsFailureMechanism failureMechanism, + Func getCalculationFunc, IAssessmentSection assessmentSection, Func getNormFunc) - : base(failureMechanism?.HydraulicBoundaryLocations, assessmentSection) + : base(failureMechanism?.HydraulicBoundaryLocations, getCalculationFunc, assessmentSection) { if (getNormFunc == null) { @@ -114,7 +117,7 @@ CalculationGuiService.CalculateWaveHeights(AssessmentSection.HydraulicBoundaryDatabase.FilePath, AssessmentSection.HydraulicBoundaryDatabase.EffectivePreprocessorDirectory(), locations, - hbl => hbl.WaveHeightCalculation, + getCalculationFunc, mechanismSpecificNorm, messageProvider); } @@ -128,7 +131,7 @@ protected override HydraulicBoundaryLocationCalculation GetCalculation(HydraulicBoundaryLocation location) { - return location.WaveHeightCalculation; + return getCalculationFunc(location); } } } \ No newline at end of file