Index: Riskeer/GrassCoverErosionInwards/src/Riskeer.GrassCoverErosionInwards.Forms/Views/GrassCoverErosionInwardsCalculationRow.cs =================================================================== diff -u -r9817b8134222089e6812200b797ff63eb675d67b -r789bfc0218617f5fc0cdf901634b170411878f2c --- Riskeer/GrassCoverErosionInwards/src/Riskeer.GrassCoverErosionInwards.Forms/Views/GrassCoverErosionInwardsCalculationRow.cs (.../GrassCoverErosionInwardsCalculationRow.cs) (revision 9817b8134222089e6812200b797ff63eb675d67b) +++ Riskeer/GrassCoverErosionInwards/src/Riskeer.GrassCoverErosionInwards.Forms/Views/GrassCoverErosionInwardsCalculationRow.cs (.../GrassCoverErosionInwardsCalculationRow.cs) (revision 789bfc0218617f5fc0cdf901634b170411878f2c) @@ -108,6 +108,9 @@ } } + /// + /// Gets or sets the dike profile of the . + /// public DataGridViewComboBoxItemWrapper DikeProfile { get @@ -117,10 +120,16 @@ set { DikeProfile valueToSet = value?.WrappedObject; - GrassCoverErosionInwardsCalculationScenario.InputParameters.DikeProfile = valueToSet; + if (!ReferenceEquals(GrassCoverErosionInwardsCalculationScenario.InputParameters.DikeProfile, valueToSet)) + { + PropertyChangeHelper.ChangePropertyAndNotify(() => GrassCoverErosionInwardsCalculationScenario.InputParameters.DikeProfile = valueToSet, propertyChangeHandler); + } } } + /// + /// Gets or sets whether break water of the should be used. + /// public bool UseBreakWater { get @@ -129,10 +138,16 @@ } set { - GrassCoverErosionInwardsCalculationScenario.InputParameters.UseBreakWater = value; + if (!GrassCoverErosionInwardsCalculationScenario.InputParameters.UseBreakWater.Equals(value)) + { + PropertyChangeHelper.ChangePropertyAndNotify(() => GrassCoverErosionInwardsCalculationScenario.InputParameters.UseBreakWater = value, propertyChangeHandler); + } } } + /// + /// Gets or sets the break water type of the . + /// public DataGridViewComboBoxItemWrapper BreakWaterType { get @@ -142,10 +157,16 @@ set { BreakWaterType valueToSet = value.WrappedObject; - GrassCoverErosionInwardsCalculationScenario.InputParameters.BreakWater.Type = valueToSet; + if (!GrassCoverErosionInwardsCalculationScenario.InputParameters.BreakWater.Type.Equals(valueToSet)) + { + PropertyChangeHelper.ChangePropertyAndNotify(() => GrassCoverErosionInwardsCalculationScenario.InputParameters.BreakWater.Type = valueToSet, propertyChangeHandler); + } } } + /// + /// Gets or sets the break water height of the . + /// public RoundedDouble BreakWaterHeight { get @@ -155,9 +176,16 @@ set { GrassCoverErosionInwardsCalculationScenario.InputParameters.BreakWater.Height = value; + if (!GrassCoverErosionInwardsCalculationScenario.InputParameters.BreakWater.Height.Equals(value)) + { + PropertyChangeHelper.ChangePropertyAndNotify(() => GrassCoverErosionInwardsCalculationScenario.InputParameters.BreakWater.Height = value, propertyChangeHandler); + } } } + /// + /// Gets or sets whether foreshore geometry of the should be used. + /// public bool UseForeShoreGeometry { get @@ -166,10 +194,16 @@ } set { - GrassCoverErosionInwardsCalculationScenario.InputParameters.UseForeshore = value; + if (!GrassCoverErosionInwardsCalculationScenario.InputParameters.UseForeshore.Equals(value)) + { + PropertyChangeHelper.ChangePropertyAndNotify(() => GrassCoverErosionInwardsCalculationScenario.InputParameters.UseForeshore = value, propertyChangeHandler); + } } } + /// + /// Gets or sets the dike height of the . + /// public RoundedDouble DikeHeight { get @@ -178,10 +212,16 @@ } set { - GrassCoverErosionInwardsCalculationScenario.InputParameters.DikeHeight = value; + if (!GrassCoverErosionInwardsCalculationScenario.InputParameters.DikeHeight.Equals(value)) + { + PropertyChangeHelper.ChangePropertyAndNotify(() => GrassCoverErosionInwardsCalculationScenario.InputParameters.DikeHeight = value, propertyChangeHandler); + } } } + /// + /// Gets or sets the mean critical flow rate of the . + /// public RoundedDouble MeanCriticalFlowRate { get @@ -190,10 +230,16 @@ } set { - GrassCoverErosionInwardsCalculationScenario.InputParameters.CriticalFlowRate.Mean = value; + if (!GrassCoverErosionInwardsCalculationScenario.InputParameters.CriticalFlowRate.Mean.Equals(value)) + { + PropertyChangeHelper.ChangePropertyAndNotify(() => GrassCoverErosionInwardsCalculationScenario.InputParameters.CriticalFlowRate.Mean = value, propertyChangeHandler); + } } } + /// + /// Gets or sets the standard deviation critical flow rate of the . + /// public RoundedDouble StandardDeviationCriticalFlowRate { get @@ -202,7 +248,10 @@ } set { - GrassCoverErosionInwardsCalculationScenario.InputParameters.CriticalFlowRate.StandardDeviation = value; + if (!GrassCoverErosionInwardsCalculationScenario.InputParameters.CriticalFlowRate.StandardDeviation.Equals(value)) + { + PropertyChangeHelper.ChangePropertyAndNotify(() => GrassCoverErosionInwardsCalculationScenario.InputParameters.CriticalFlowRate.StandardDeviation = value, propertyChangeHandler); + } } } } Index: Riskeer/GrassCoverErosionInwards/src/Riskeer.GrassCoverErosionInwards.Forms/Views/GrassCoverErosionInwardsCalculationsView.cs =================================================================== diff -u -rbe052b298fabacb80de8f62c80abdc996c95f79a -r789bfc0218617f5fc0cdf901634b170411878f2c --- Riskeer/GrassCoverErosionInwards/src/Riskeer.GrassCoverErosionInwards.Forms/Views/GrassCoverErosionInwardsCalculationsView.cs (.../GrassCoverErosionInwardsCalculationsView.cs) (revision be052b298fabacb80de8f62c80abdc996c95f79a) +++ Riskeer/GrassCoverErosionInwards/src/Riskeer.GrassCoverErosionInwards.Forms/Views/GrassCoverErosionInwardsCalculationsView.cs (.../GrassCoverErosionInwardsCalculationsView.cs) (revision 789bfc0218617f5fc0cdf901634b170411878f2c) @@ -94,8 +94,10 @@ grassCoverErosionInwardsFailureMechanism = value; grassCoverErosionInwardsFailureMechanismObserver.Observable = grassCoverErosionInwardsFailureMechanism; + + UpdateDikeProfilesColumn(); + UpdateSelectableHydraulicBoundaryLocationsColumn(); UpdateSectionsListBox(); - UpdateGenerateCalculationsButtonState(); } } @@ -209,11 +211,11 @@ Resources.GrassCoverErosionInwardsCalculation_Dikeheight); dataGridViewControl.AddTextBoxColumn( - nameof(GrassCoverErosionInwardsCalculationRow.ExpectedCriticalOvertoppingRate), + nameof(GrassCoverErosionInwardsCalculationRow.MeanCriticalFlowRate), Resources.GrassCoverErosionInwardsCalculation_Expected_Critical_OvertoppingRate); dataGridViewControl.AddTextBoxColumn( - nameof(GrassCoverErosionInwardsCalculationRow.StandardDeviationCriticalOvertoppingRate), + nameof(GrassCoverErosionInwardsCalculationRow.StandardDeviationCriticalFlowRate), Resources.GrassCoverErosionInwardsCalculation_StandardDeviation_Critical_OvertoppingRate); } @@ -298,7 +300,7 @@ SetItemsOnObjectCollection(cell.Items, dataGridViewComboBoxItemWrappers); } - private List> GetSelectableDikeProfileDataSource(IEnumerable selectableDikeProfiles = null) + private static List> GetSelectableDikeProfileDataSource(IEnumerable selectableDikeProfiles = null) { var dataGridViewComboBoxItemWrappers = new List> {