Index: Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/PropertyClasses/ClosingStructuresInputContextProperties.cs =================================================================== diff -u -r449b5831547d5a6391da8ad825e7c845ef7ecc1c -r7d922899412d52bcc7c2f1432589dfcd62d364b4 --- Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/PropertyClasses/ClosingStructuresInputContextProperties.cs (.../ClosingStructuresInputContextProperties.cs) (revision 449b5831547d5a6391da8ad825e7c845ef7ecc1c) +++ Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/PropertyClasses/ClosingStructuresInputContextProperties.cs (.../ClosingStructuresInputContextProperties.cs) (revision 7d922899412d52bcc7c2f1432589dfcd62d364b4) @@ -412,30 +412,14 @@ #endregion - public override bool IsReadOnly(string property) + protected override bool ShouldPropertyBeReadOnlyInAbsenseOfStructure(string property) { - if (property == nameof(InflowModelType)) - { - return !HasStructure(); - } - if (property == nameof(IdenticalApertures)) - { - return !HasStructure(); - } - if (property == nameof(ProbabilityOrFrequencyOpenStructureBeforeFlooding)) - { - return !HasStructure(); - } - if (property == nameof(FailureProbabilityOpenStructure)) - { - return !HasStructure(); - } - if (property == nameof(FailureProbabilityReparation)) - { - return !HasStructure(); - } - - return base.IsReadOnly(property); + return nameof(InflowModelType).Equals(property) + || nameof(IdenticalApertures).Equals(property) + || nameof(ProbabilityOrFrequencyOpenStructureBeforeFlooding).Equals(property) + || nameof(FailureProbabilityOpenStructure).Equals(property) + || nameof(FailureProbabilityReparation).Equals(property) + || base.ShouldPropertyBeReadOnlyInAbsenseOfStructure(property); } } } \ No newline at end of file