Index: Ringtoets/Revetment/src/Ringtoets.Revetment.Forms/PropertyClasses/WaveConditionsInputContextProperties.cs =================================================================== diff -u -rb41ef82a44c84f0211937d1b7f22794ad8a45941 -r37fc59cc0f3becb92e14b8263bd8e9fc71aa0e79 --- Ringtoets/Revetment/src/Ringtoets.Revetment.Forms/PropertyClasses/WaveConditionsInputContextProperties.cs (.../WaveConditionsInputContextProperties.cs) (revision b41ef82a44c84f0211937d1b7f22794ad8a45941) +++ Ringtoets/Revetment/src/Ringtoets.Revetment.Forms/PropertyClasses/WaveConditionsInputContextProperties.cs (.../WaveConditionsInputContextProperties.cs) (revision 37fc59cc0f3becb92e14b8263bd8e9fc71aa0e79) @@ -127,7 +127,7 @@ } set { - ChangePropertyAndNotify((input, newValue) => input.UpperBoundaryRevetment = newValue, value); + ChangePropertyAndNotify(() => data.WrappedData.UpperBoundaryRevetment = value); } } @@ -143,7 +143,7 @@ } set { - ChangePropertyAndNotify((input, newValue) => input.LowerBoundaryRevetment = newValue, value); + ChangePropertyAndNotify(() => data.WrappedData.LowerBoundaryRevetment = value); } } @@ -159,7 +159,7 @@ } set { - ChangePropertyAndNotify((input, newValue) => input.UpperBoundaryWaterLevels = newValue, value); + ChangePropertyAndNotify(() => data.WrappedData.UpperBoundaryWaterLevels = value); } } @@ -175,7 +175,7 @@ } set { - ChangePropertyAndNotify((input, newValue) => input.LowerBoundaryWaterLevels = newValue, value); + ChangePropertyAndNotify(() => data.WrappedData.LowerBoundaryWaterLevels = value); } } @@ -192,7 +192,7 @@ } set { - ChangePropertyAndNotify((input, newValue) => input.StepSize = newValue, value); + ChangePropertyAndNotify(() => data.WrappedData.StepSize = value); } } @@ -236,7 +236,7 @@ } set { - ChangePropertyAndNotify((input, newValue) => input.Orientation = newValue, value); + ChangePropertyAndNotify(() => data.WrappedData.Orientation = value); } } @@ -287,7 +287,7 @@ } set { - ChangePropertyAndNotify((input, newValue) => input.ForeshoreProfile = newValue, value); + ChangePropertyAndNotify(() => data.WrappedData.ForeshoreProfile = value); } } @@ -308,7 +308,7 @@ } set { - ChangePropertyAndNotify((input, newValue) => input.HydraulicBoundaryLocation = newValue.HydraulicBoundaryLocation, value); + ChangePropertyAndNotify(() => data.WrappedData.HydraulicBoundaryLocation = value.HydraulicBoundaryLocation); } } @@ -324,14 +324,9 @@ data.HydraulicBoundaryLocations, referenceLocation); } - private void ChangePropertyAndNotify( - SetObservablePropertyValueDelegate setPropertyValue, - TValue value) + private void ChangePropertyAndNotify(SetObservablePropertyValueDelegate setPropertyValue) { - IEnumerable affectedObjects = propertyChangeHandler.SetPropertyValueAfterConfirmation( - data.WrappedData, - value, - setPropertyValue); + IEnumerable affectedObjects = propertyChangeHandler.SetPropertyValueAfterConfirmation(setPropertyValue); NotifyAffectedObjects(affectedObjects); }