Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Forms/Views/GrassCoverErosionInwardsChartDataFactory.cs =================================================================== diff -u -r0f2c3010ba8a0760af2c98f70abd6542a936ca32 -re0868fe8d1c342d98fcb16a0273353fcf697d1c0 --- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Forms/Views/GrassCoverErosionInwardsChartDataFactory.cs (.../GrassCoverErosionInwardsChartDataFactory.cs) (revision 0f2c3010ba8a0760af2c98f70abd6542a936ca32) +++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Forms/Views/GrassCoverErosionInwardsChartDataFactory.cs (.../GrassCoverErosionInwardsChartDataFactory.cs) (revision e0868fe8d1c342d98fcb16a0273353fcf697d1c0) @@ -44,17 +44,18 @@ /// /// The geometry of the for which to create /// . + /// The name of the . /// based on the . /// Thrown when /// is null. - public static ChartData Create(RoughnessPoint[] dikeGeometry) + public static ChartData Create(RoughnessPoint[] dikeGeometry, string name) { if (dikeGeometry == null) { throw new ArgumentNullException("dikeGeometry"); } - return new ChartLineData(dikeGeometry.Select(dg => dg.Point), Resources.DikeProfile_DisplayName) + return new ChartLineData(dikeGeometry.Select(dg => dg.Point), string.Format(Resources.GrassCoverErosionInwardsChartDataFactory_Create_Name_format, Resources.DikeProfile_DisplayName, name)) { Style = new ChartLineStyle(Color.SaddleBrown, 2, DashStyle.Solid) }; @@ -65,17 +66,18 @@ /// /// The forshore geometry of the /// for which to create . + /// The name of the . /// based on the . /// Thrown when /// is null. - public static ChartData Create(Point2D[] foreshoreGeometry) + public static ChartData Create(Point2D[] foreshoreGeometry, string name) { if (foreshoreGeometry == null) { throw new ArgumentNullException("foreshoreGeometry"); } - return new ChartLineData(foreshoreGeometry, Resources.Foreshore_DisplayName) + return new ChartLineData(foreshoreGeometry, string.Format(Resources.GrassCoverErosionInwardsChartDataFactory_Create_Name_format, Resources.Foreshore_DisplayName, name)) { Style = new ChartLineStyle(Color.DarkOrange, 2, DashStyle.Solid) }; @@ -88,11 +90,12 @@ /// to create . /// The geometry of the to place the /// on. + /// The name of the . /// based on the . /// Thrown when is NaN. /// Thrown when /// is null. - public static ChartData Create(RoundedDouble dikeHeight, RoughnessPoint[] dikeGeometry) + public static ChartData Create(RoundedDouble dikeHeight, RoughnessPoint[] dikeGeometry, string name) { if (double.IsNaN(dikeHeight)) { @@ -104,7 +107,7 @@ throw new ArgumentNullException("dikeGeometry"); } - return new ChartLineData(CreateDikeHeightData(dikeHeight, dikeGeometry), Resources.DikeHeight_ChartName) + return new ChartLineData(CreateDikeHeightData(dikeHeight, dikeGeometry), string.Format(Resources.GrassCoverErosionInwardsChartDataFactory_Create_Name_format, Resources.DikeHeight_ChartName, name)) { Style = new ChartLineStyle(Color.MediumSeaGreen, 2, DashStyle.Dash) };