Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Views/HydraulicBoundaryLocationsView.cs
===================================================================
diff -u -r338e01eab497adc6929db92e28fdfc931bdf8223 -rbf6b851717008a6e36b1010edba138bd6a9dba64
--- Ringtoets/Common/src/Ringtoets.Common.Forms/Views/HydraulicBoundaryLocationsView.cs (.../HydraulicBoundaryLocationsView.cs) (revision 338e01eab497adc6929db92e28fdfc931bdf8223)
+++ Ringtoets/Common/src/Ringtoets.Common.Forms/Views/HydraulicBoundaryLocationsView.cs (.../HydraulicBoundaryLocationsView.cs) (revision bf6b851717008a6e36b1010edba138bd6a9dba64)
@@ -105,10 +105,10 @@
}
///
- /// Handles the calculation of the .
+ /// Performs the selected .
///
- /// The enumeration of to use in the calculation.
- protected abstract void HandleCalculateSelectedLocations(IEnumerable locations);
+ /// The calculations to perform.
+ protected abstract void PerformSelectedCalculations(IEnumerable calculations);
protected override void CalculateForSelectedRows()
{
@@ -117,8 +117,7 @@
return;
}
- IEnumerable selectedLocations = GetSelectedCalculatableObjects();
- HandleCalculateSelectedLocations(selectedLocations);
+ PerformSelectedCalculations(GetSelectedCalculatableObjects);
}
protected override void SetDataSource()
@@ -134,9 +133,8 @@
return Enumerable.Empty();
}
- HydraulicBoundaryLocation location = ((HydraulicBoundaryLocationRow) currentRow.DataBoundItem).CalculatableObject;
+ HydraulicBoundaryLocationCalculation hydraulicBoundaryLocationCalculation = ((HydraulicBoundaryLocationRow) currentRow.DataBoundItem).CalculatableObject;
- HydraulicBoundaryLocationCalculation hydraulicBoundaryLocationCalculation = GetCalculationFunc(location);
HydraulicBoundaryLocationOutput hydraulicBoundaryLocationOutput = hydraulicBoundaryLocationCalculation.Output;
if (hydraulicBoundaryLocationCalculation.HasOutput
&& hydraulicBoundaryLocationOutput.HasGeneralResult)
@@ -160,13 +158,11 @@
///
/// Creates a new row that is added to the data table.
///
- /// The location for which to create a new row.
+ /// The calculation for which to create a new row.
/// The newly created row.
- /// Thrown when is null or
- /// returns null.
- private HydraulicBoundaryLocationRow CreateNewRow(HydraulicBoundaryLocation location)
+ private HydraulicBoundaryLocationRow CreateNewRow(HydraulicBoundaryLocationCalculation calculation)
{
- return new HydraulicBoundaryLocationRow(location, GetCalculationFunc(location));
+ return new HydraulicBoundaryLocationRow(calculation);
}
}
}
\ No newline at end of file