Index: Riskeer/Common/src/Riskeer.Common.Forms/Helpers/CalculationsDisplayNameHelper.cs
===================================================================
diff -u -rf46c8c7a6ec4924d8e1298fc06ca1d77bcb7e3bb -rd47871932be00b85193481e18b55d97f50824fed
--- Riskeer/Common/src/Riskeer.Common.Forms/Helpers/CalculationsDisplayNameHelper.cs (.../CalculationsDisplayNameHelper.cs) (revision f46c8c7a6ec4924d8e1298fc06ca1d77bcb7e3bb)
+++ Riskeer/Common/src/Riskeer.Common.Forms/Helpers/CalculationsDisplayNameHelper.cs (.../CalculationsDisplayNameHelper.cs) (revision d47871932be00b85193481e18b55d97f50824fed)
@@ -84,37 +84,36 @@
}
///
- /// Gets a unique wave height calculations display name for the provided .
+ /// Gets a unique display name for the provided .
///
- /// The assessment section the belong to.
- /// The wave height calculations to get the unique display name for.
- /// A unique wave height calculations display name.
+ /// The enumeration of all calculations (containing ).
+ /// The calculations to get the unique display name for.
+ /// The function to obtain the target probability for elements within .
+ /// A unique calculations display name.
/// Thrown when any input parameter is null.
- /// Thrown when is not part of the wave height
- /// calculations within .
- public static string GetUniqueDisplayNameForWaveHeightCalculations(IAssessmentSection assessmentSection, IEnumerable calculations)
+ /// Thrown when is not part of .
+ public static string GetUniqueDisplayNameForCalculations(T calculations, IEnumerable allCalculations, Func getTargetProbabilityFunc)
{
- if (assessmentSection == null)
+ if (allCalculations == null)
{
- throw new ArgumentNullException(nameof(assessmentSection));
+ throw new ArgumentNullException(nameof(allCalculations));
}
if (calculations == null)
{
throw new ArgumentNullException(nameof(calculations));
}
- Dictionary