Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Views/HydraulicBoundaryLocationsView.cs =================================================================== diff -u -rb9d3e9f07eb3d45c0b608fc219982c4ddec05d6a -re468a5451f59115ec6ca32c014da1baaa38866e8 --- Ringtoets/Common/src/Ringtoets.Common.Forms/Views/HydraulicBoundaryLocationsView.cs (.../HydraulicBoundaryLocationsView.cs) (revision b9d3e9f07eb3d45c0b608fc219982c4ddec05d6a) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/Views/HydraulicBoundaryLocationsView.cs (.../HydraulicBoundaryLocationsView.cs) (revision e468a5451f59115ec6ca32c014da1baaa38866e8) @@ -34,7 +34,7 @@ /// Base view for views which should be derived in order to get a consistent look and feel. /// /// The type of the row objects which are shown in the data table. - public abstract partial class HydraulicBoundaryLocationsView : CalculatableView where T : HydraulicBoundaryLocationRow + public abstract partial class HydraulicBoundaryLocationsView : CalculatableView where T : HydraulicBoundaryLocationRow { private IEnumerable locations; @@ -95,7 +95,7 @@ return; } - var selectedLocations = GetSelectedHydraulicBoundaryLocationContext(); + var selectedLocations = GetSelectedLocations(); HandleCalculateSelectedLocations(selectedLocations); } @@ -106,12 +106,5 @@ { dataGridViewControl.SetDataSource(locations?.Select(CreateNewRow).ToArray()); } - - private IEnumerable GetSelectedHydraulicBoundaryLocationContext() - { - return GetCalculatableRows().Where(r => r.ToCalculate) - .Cast() - .Select(r => r.HydraulicBoundaryLocation); - } } } \ No newline at end of file