Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/DesignWaterLevelLocationContextRow.cs =================================================================== diff -u -r5bdb5ecc12d8c8e7ef49b63f0a40dfbdd2532d54 -r9312943e6ef9894811d9b0b87239af47f79205ec --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/DesignWaterLevelLocationContextRow.cs (.../DesignWaterLevelLocationContextRow.cs) (revision 5bdb5ecc12d8c8e7ef49b63f0a40dfbdd2532d54) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/DesignWaterLevelLocationContextRow.cs (.../DesignWaterLevelLocationContextRow.cs) (revision 9312943e6ef9894811d9b0b87239af47f79205ec) @@ -22,93 +22,35 @@ using System; using System.ComponentModel; using Core.Common.Base.Data; -using Core.Common.Base.Geometry; using Ringtoets.Common.Forms.TypeConverters; +using Ringtoets.HydraRing.Data; using Ringtoets.Integration.Forms.PresentationObjects; namespace Ringtoets.Integration.Forms.Views { /// /// This class represents a row of . /// - internal class DesignWaterLevelLocationContextRow + internal class DesignWaterLevelLocationContextRow : HydraulicBoundaryLocationContextRow { - private readonly DesignWaterLevelLocationContext designWaterLevelLocationContext; - /// /// Creates a new instance of . /// - /// The for this row. - /// Thrown when is null. - internal DesignWaterLevelLocationContextRow(DesignWaterLevelLocationContext designWaterLevelLocationContext) - { - if (designWaterLevelLocationContext == null) - { - throw new ArgumentNullException("designWaterLevelLocationContext"); - } + /// The for this row. + /// Thrown when is null. + internal DesignWaterLevelLocationContextRow(DesignWaterLevelLocationContext hydraulicBoundaryLocationContext) + : base(hydraulicBoundaryLocationContext) {} - this.designWaterLevelLocationContext = designWaterLevelLocationContext; - } - /// - /// Gets or sets whether the is set to be calculated. + /// Gets the . /// - public bool ToCalculate { get; set; } - - /// - /// Gets the . - /// - public string Name - { - get - { - return designWaterLevelLocationContext.HydraulicBoundaryLocation.Name; - } - } - - /// - /// Gets the . - /// - public long Id - { - get - { - return designWaterLevelLocationContext.HydraulicBoundaryLocation.Id; - } - } - - /// - /// Gets the . - /// - public Point2D Location - { - get - { - return designWaterLevelLocationContext.HydraulicBoundaryLocation.Location; - } - } - - /// - /// Gets the . - /// [TypeConverter(typeof(NoValueRoundedDoubleConverter))] public RoundedDouble DesignWaterLevel { get { - return new RoundedDouble(2, designWaterLevelLocationContext.HydraulicBoundaryLocation.DesignWaterLevel); + return HydraulicBoundaryLocationContext.HydraulicBoundaryLocation.DesignWaterLevel; } } - - /// - /// Gets the . - /// - public DesignWaterLevelLocationContext DesignWaterLevelLocationContext - { - get - { - return designWaterLevelLocationContext; - } - } } } \ No newline at end of file