Index: Ringtoets/Common/src/Ringtoets.Common.Plugin/RingtoetsPluginHelper.cs =================================================================== diff -u -r88a027f5282f504c25327525a3bf2e2e4950b09f -r2ecbb5230248dc9f9b6706a0fd8ced09c9cd62c7 --- Ringtoets/Common/src/Ringtoets.Common.Plugin/RingtoetsPluginHelper.cs (.../RingtoetsPluginHelper.cs) (revision 88a027f5282f504c25327525a3bf2e2e4950b09f) +++ Ringtoets/Common/src/Ringtoets.Common.Plugin/RingtoetsPluginHelper.cs (.../RingtoetsPluginHelper.cs) (revision 2ecbb5230248dc9f9b6706a0fd8ced09c9cd62c7) @@ -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;