Index: Riskeer/StabilityPointStructures/src/Riskeer.StabilityPointStructures.Forms/Views/StabilityPointStructuresCalculationRow.cs =================================================================== diff -u -r4936c95daeadf1d6bae41b43d57d0122f9b7b40f -r7c908c42697d05d5c0c3d11a751090e8a8a6496f --- Riskeer/StabilityPointStructures/src/Riskeer.StabilityPointStructures.Forms/Views/StabilityPointStructuresCalculationRow.cs (.../StabilityPointStructuresCalculationRow.cs) (revision 4936c95daeadf1d6bae41b43d57d0122f9b7b40f) +++ Riskeer/StabilityPointStructures/src/Riskeer.StabilityPointStructures.Forms/Views/StabilityPointStructuresCalculationRow.cs (.../StabilityPointStructuresCalculationRow.cs) (revision 7c908c42697d05d5c0c3d11a751090e8a8a6496f) @@ -63,6 +63,7 @@ ColumnStateDefinitions = new Dictionary(); CreateColumnStateDefinitions(); UpdateUseBreakWaterColumnStateDefinitions(); + UpdateBreakWaterTypeAndHeightColumnStateDefinitions(); UpdateUseForeshoreColumnStateDefinitions(); UpdateLoadSchematizationColumnStateDefinitions(); } @@ -95,7 +96,7 @@ if (!Calculation.InputParameters.UseBreakWater.Equals(value)) { PropertyChangeHelper.ChangePropertyAndNotify(() => Calculation.InputParameters.UseBreakWater = value, PropertyChangeHandler); - UpdateUseBreakWaterColumnStateDefinitions(); + UpdateBreakWaterTypeAndHeightColumnStateDefinitions(); } } } @@ -262,7 +263,7 @@ ColumnStateDefinitions.Add(stabilityQuadraticLoadModelColumnIndex, new DataGridViewColumnStateDefinition()); } - private void UpdateUseBreakWaterColumnStateDefinitions() + private void UpdateBreakWaterTypeAndHeightColumnStateDefinitions() { if (!UseBreakWater) { @@ -291,6 +292,19 @@ } } + private void UpdateUseBreakWaterColumnStateDefinitions() + { + ForeshoreProfile foreShoreProfileGeometry = Calculation.InputParameters.ForeshoreProfile; + if (foreShoreProfileGeometry == null) + { + ColumnStateHelper.DisableColumn(ColumnStateDefinitions[useBreakWaterColumnIndex]); + } + else + { + ColumnStateHelper.EnableColumn(ColumnStateDefinitions[useBreakWaterColumnIndex]); + } + } + private void UpdateLoadSchematizationColumnStateDefinitions() { if (LoadSchematizationType == LoadSchematizationType.Linear)