Index: Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/Views/GrassCoverErosionOutwardsDesignWaterLevelLocationsView.cs =================================================================== diff -u -rfcd32c8e949b4581cc20adcaa7cf7639fcb69d20 -r298af52e9de68d5beed50a88ec11be5bce1fc783 --- Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/Views/GrassCoverErosionOutwardsDesignWaterLevelLocationsView.cs (.../GrassCoverErosionOutwardsDesignWaterLevelLocationsView.cs) (revision fcd32c8e949b4581cc20adcaa7cf7639fcb69d20) +++ Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/Views/GrassCoverErosionOutwardsDesignWaterLevelLocationsView.cs (.../GrassCoverErosionOutwardsDesignWaterLevelLocationsView.cs) (revision 298af52e9de68d5beed50a88ec11be5bce1fc783) @@ -34,7 +34,7 @@ namespace Ringtoets.GrassCoverErosionOutwards.Forms.Views { - public class GrassCoverErosionOutwardsDesignWaterLevelLocationsView : HydraulicBoundaryLocationsView + public class GrassCoverErosionOutwardsDesignWaterLevelLocationsView : HydraulicBoundaryLocationsView { private readonly Observer assessmentSectionObserver; private readonly Observer hydraulicBoundaryLocationsObserver; @@ -99,26 +99,26 @@ base.Dispose(disposing); } - protected override DesignWaterLevelLocationRow CreateNewRow(HydraulicBoundaryLocation location) + protected override HydraulicBoundaryLocationRow CreateNewRow(HydraulicBoundaryLocation location) { - return new DesignWaterLevelLocationRow(location); + return new HydraulicBoundaryLocationRow(location, location.DesignWaterLevelCalculation); } protected override void InitializeDataGridView() { base.InitializeDataGridView(); - dataGridViewControl.AddTextBoxColumn(nameof(DesignWaterLevelLocationRow.DesignWaterLevel), + dataGridViewControl.AddTextBoxColumn(nameof(HydraulicBoundaryLocationRow.Result), Resources.GrassCoverErosionOutwardsHydraulicBoundaryLocation_DesignWaterLevel_DisplayName); } protected override object CreateSelectedItemFromCurrentRow() { DataGridViewRow currentRow = dataGridViewControl.CurrentRow; - return currentRow != null ? - new GrassCoverErosionOutwardsDesignWaterLevelLocationContext((ObservableList) Data, - ((HydraulicBoundaryLocationRow) currentRow.DataBoundItem).CalculatableObject) : - null; + return currentRow != null + ? new GrassCoverErosionOutwardsDesignWaterLevelLocationContext((ObservableList) Data, + ((HydraulicBoundaryLocationRow) currentRow.DataBoundItem).CalculatableObject) + : null; } protected override void HandleCalculateSelectedLocations(IEnumerable locations) @@ -175,7 +175,7 @@ } for (var i = 0; i < count; i++) { - HydraulicBoundaryLocation locationFromGrid = ((DesignWaterLevelLocationRow) dataGridViewControl.Rows[i].DataBoundItem).CalculatableObject; + HydraulicBoundaryLocation locationFromGrid = ((HydraulicBoundaryLocationRow) dataGridViewControl.Rows[i].DataBoundItem).CalculatableObject; if (!ReferenceEquals(locationFromGrid, locations[i])) { return true;