Index: Ringtoets/Common/src/Ringtoets.Common.Plugin/RingtoetsPluginHelper.cs
===================================================================
diff -u -r36af0dd60aa8c8e97cd35183f0355224109831c3 -rfd449c3c338407f419fbc0a3ad4c1ec29e56a18b
--- Ringtoets/Common/src/Ringtoets.Common.Plugin/RingtoetsPluginHelper.cs (.../RingtoetsPluginHelper.cs) (revision 36af0dd60aa8c8e97cd35183f0355224109831c3)
+++ Ringtoets/Common/src/Ringtoets.Common.Plugin/RingtoetsPluginHelper.cs (.../RingtoetsPluginHelper.cs) (revision fd449c3c338407f419fbc0a3ad4c1ec29e56a18b)
@@ -19,6 +19,7 @@
// Stichting Deltares and remain full property of Stichting Deltares at all times.
// All rights reserved.
+using System;
using System.Collections.Generic;
using System.Linq;
using Core.Common.Controls.Views;
@@ -28,6 +29,7 @@
using Ringtoets.Common.Data.FailureMechanism;
using Ringtoets.Common.Forms.PresentationObjects;
using Ringtoets.Common.Forms.Views;
+using RingtoetsCommonDataResources = Ringtoets.Common.Data.Properties.Resources;
namespace Ringtoets.Common.Plugin
{
@@ -94,6 +96,23 @@
return failureMechanism != null && ReferenceEquals(view.FailureMechanism, failureMechanism);
}
+ ///
+ /// Formats a category boundary name to its full display name.
+ ///
+ /// The name of the category boundary to format.
+ /// The formatted category boundary name.
+ /// Thrown when
+ /// is null.
+ public static string FormatCategoryBoundaryName(string categoryBoundaryName)
+ {
+ if (categoryBoundaryName == null)
+ {
+ throw new ArgumentNullException(nameof(categoryBoundaryName));
+ }
+
+ return string.Format(RingtoetsCommonDataResources.Hydraulic_category_boundary_0_, categoryBoundaryName);
+ }
+
private static IEnumerable GetCalculationsFromFailureMechanisms(object o)
{
var failureMechanism = o as IFailureMechanism;