Index: Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/PropertyClasses/GrassCoverErosionOutwardsWaveHeightLocationContextProperties.cs =================================================================== diff -u -r8bb6e849266ec28412ebfe23beccd7235c4db9bf -r6cdf02ac497b3bab4f7f955efac588545f5b8986 --- Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/PropertyClasses/GrassCoverErosionOutwardsWaveHeightLocationContextProperties.cs (.../GrassCoverErosionOutwardsWaveHeightLocationContextProperties.cs) (revision 8bb6e849266ec28412ebfe23beccd7235c4db9bf) +++ Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Forms/PropertyClasses/GrassCoverErosionOutwardsWaveHeightLocationContextProperties.cs (.../GrassCoverErosionOutwardsWaveHeightLocationContextProperties.cs) (revision 6cdf02ac497b3bab4f7f955efac588545f5b8986) @@ -26,6 +26,7 @@ using Core.Common.Utils; using Core.Common.Utils.Attributes; using Ringtoets.Common.Data.Hydraulics; +using Ringtoets.Common.Data.Hydraulics.IllustrationPoints; using Ringtoets.Common.Forms.TypeConverters; using Ringtoets.GrassCoverErosionOutwards.Data; using Ringtoets.GrassCoverErosionOutwards.Forms.Properties; @@ -39,33 +40,21 @@ /// public class GrassCoverErosionOutwardsWaveHeightLocationContextProperties : GrassCoverErosionOutwardsHydraulicBoundaryLocationContextProperties { - [PropertyOrder(1)] - public override long Id - { - get + /// + /// Creates a new instance of . + /// + public GrassCoverErosionOutwardsWaveHeightLocationContextProperties() + : base(new ConstructionProperties { - return base.Id; - } - } + IdIndex = 1, + NameIndex = 2, + LocationIndex = 3, + GoverningWindDirectionIndex = 10, + StochastsIndex = 11, + DurationsIndex = 12, + IllustrationPointsIndex = 13 + }) { } - [PropertyOrder(2)] - public override string Name - { - get - { - return base.Name; - } - } - - [PropertyOrder(3)] - public override Point2D Location - { - get - { - return base.Location; - } - } - [PropertyOrder(4)] [TypeConverter(typeof(NoValueRoundedDoubleConverter))] [ResourcesCategory(typeof(RingtoetsCommonFormsResources), nameof(RingtoetsCommonFormsResources.Categories_Result))] @@ -146,5 +135,15 @@ return new EnumDisplayWrapper(data.HydraulicBoundaryLocation.WaveHeightCalculationConvergence).DisplayName; } } + + protected override GeneralResult GetGeneralIllustrationPointsResult() + { + if (data.HydraulicBoundaryLocation.WaveHeightCalculation.HasOutput + && data.HydraulicBoundaryLocation.WaveHeightCalculation.Output.HasIllustrationPoints) + { + return data.HydraulicBoundaryLocation.WaveHeightCalculation.Output.GeneralResult; + } + return null; + } } } \ No newline at end of file