Index: Ringtoets/Piping/src/Ringtoets.Piping.Forms/PropertyClasses/PipingInputContextProperties.cs =================================================================== diff -u -r0eef796eb9da995e56fd1e4a61296ec3c25dcfad -r5762f5a734abc237f01cd62257cedd7ba2e9c8e8 --- Ringtoets/Piping/src/Ringtoets.Piping.Forms/PropertyClasses/PipingInputContextProperties.cs (.../PipingInputContextProperties.cs) (revision 0eef796eb9da995e56fd1e4a61296ec3c25dcfad) +++ Ringtoets/Piping/src/Ringtoets.Piping.Forms/PropertyClasses/PipingInputContextProperties.cs (.../PipingInputContextProperties.cs) (revision 5762f5a734abc237f01cd62257cedd7ba2e9c8e8) @@ -124,18 +124,22 @@ [DynamicReadOnlyValidationMethod] public bool DynamicReadOnlyValidationMethod(string propertyName) { - if (propertyName == TypeUtils.GetMemberName(p => p.AssessmentLevel)) + if (propertyName == nameof(AssessmentLevel)) { return !data.WrappedData.UseAssessmentLevelManualInput; } + if (propertyName == nameof(EntryPointL) || propertyName == nameof(ExitPointL)) + { + return data.WrappedData.SurfaceLine == null; + } return true; } [DynamicVisibleValidationMethod] public bool DynamicVisibleValidationMethod(string propertyName) { - if (propertyName == TypeUtils.GetMemberName(p => p.SelectedHydraulicBoundaryLocation)) + if (propertyName == nameof(SelectedHydraulicBoundaryLocation)) { return !data.WrappedData.UseAssessmentLevelManualInput; } @@ -325,6 +329,7 @@ } } + [DynamicReadOnly] [PropertyOrder(entryPointLPropertyIndex)] [ResourcesCategory(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.Categories_Schematization))] [ResourcesDisplayName(typeof(Resources), nameof(Resources.PipingInput_EntryPointL_DisplayName))] @@ -341,6 +346,7 @@ } } + [DynamicReadOnly] [PropertyOrder(exitPointLPropertyIndex)] [ResourcesCategory(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.Categories_Schematization))] [ResourcesDisplayName(typeof(Resources), nameof(Resources.PipingInput_ExitPointL_DisplayName))]