Index: Ringtoets/Piping/src/Ringtoets.Piping.Data/PipingInput.cs =================================================================== diff -u -re92b96920abfc1e5463b11f4819e2fb79938d3f8 -r3bee05079e83234250a993db2c284798b8a35b16 --- Ringtoets/Piping/src/Ringtoets.Piping.Data/PipingInput.cs (.../PipingInput.cs) (revision e92b96920abfc1e5463b11f4819e2fb79938d3f8) +++ Ringtoets/Piping/src/Ringtoets.Piping.Data/PipingInput.cs (.../PipingInput.cs) (revision 3bee05079e83234250a993db2c284798b8a35b16) @@ -47,7 +47,6 @@ private RoundedDouble entryPointL; private PipingSurfaceLine surfaceLine; private RoundedDouble assessmentLevel; - private bool useAssessmentLevelManualInput; /// /// Initializes a new instance of the class. @@ -79,7 +78,6 @@ }; assessmentLevel = new RoundedDouble(2, double.NaN); - useAssessmentLevelManualInput = false; } /// @@ -194,23 +192,8 @@ /// /// Gets or sets whether the assessment level is manual input for the calculation. /// - public bool UseAssessmentLevelManualInput - { - get - { - return useAssessmentLevelManualInput; - } - set - { - useAssessmentLevelManualInput = value; + public bool UseAssessmentLevelManualInput { get; set; } - if (useAssessmentLevelManualInput) - { - HydraulicBoundaryLocation = null; - } - } - } - /// /// Gets the value true if the entry point and exit point of the /// instance of match the entry point and @@ -236,6 +219,23 @@ } /// + /// Gets or sets the outside high water level. + /// [m+NAP] + /// + /// This property is only used for calculations when is true. + public RoundedDouble AssessmentLevel + { + get + { + return assessmentLevel; + } + set + { + assessmentLevel = value.ToPrecision(assessmentLevel.NumberOfDecimalPlaces); + } + } + + /// /// Applies the entry point and exit point of the to the /// parameters of the instance of . /// @@ -292,6 +292,7 @@ { tempExitPointL = localGeometry.ElementAt(exitPointIndex).X; } + if (isDifferentPoints && entryPointIndex > -1) { tempEntryPointL = localGeometry.ElementAt(entryPointIndex).X; @@ -317,34 +318,6 @@ } } - /// - /// Gets or sets the outside high water level. - /// [m+NAP] - /// - /// Thrown when the user attempts to set the - /// assessment level while is false. - public RoundedDouble AssessmentLevel - { - get - { - if (!UseAssessmentLevelManualInput) - { - return HydraulicBoundaryLocation?.DesignWaterLevel ?? RoundedDouble.NaN; - } - - return assessmentLevel; - } - set - { - if (!UseAssessmentLevelManualInput) - { - throw new InvalidOperationException("UseAssessmentLevelManualInput is false"); - } - - assessmentLevel = value.ToPrecision(assessmentLevel.NumberOfDecimalPlaces); - } - } - #region General input parameters ///