Index: Ringtoets/Common/src/Ringtoets.Common.Forms/PropertyClasses/FailureMechanismSectionProperties.cs
===================================================================
diff -u -rdb399c3f94284852ca23773a931a43338f281e90 -rdbc19eb83d1a3fc64a5f4f4bc2889583a65b4656
--- Ringtoets/Common/src/Ringtoets.Common.Forms/PropertyClasses/FailureMechanismSectionProperties.cs (.../FailureMechanismSectionProperties.cs) (revision db399c3f94284852ca23773a931a43338f281e90)
+++ Ringtoets/Common/src/Ringtoets.Common.Forms/PropertyClasses/FailureMechanismSectionProperties.cs (.../FailureMechanismSectionProperties.cs) (revision dbc19eb83d1a3fc64a5f4f4bc2889583a65b4656)
@@ -41,16 +41,22 @@
/// Creates a new instance of .
///
/// The section to show the properties for.
+ /// The start of the section from the beginning
+ /// of the reference line in meters.
+ /// The end of the section from the beginning of
+ /// the reference line in meters.
/// Thrown when
/// is null.
- public FailureMechanismSectionProperties(FailureMechanismSection section)
+ public FailureMechanismSectionProperties(FailureMechanismSection section, double sectionStart, double sectionEnd)
{
if (section == null)
{
throw new ArgumentNullException(nameof(section));
}
data = section;
+ SectionStart = new RoundedDouble(2, sectionStart);
+ SectionEnd = new RoundedDouble(2, sectionEnd);
}
[PropertyOrder(1)]
@@ -69,25 +75,13 @@
[ResourcesCategory(typeof(Resources), nameof(Resources.Categories_General))]
[ResourcesDisplayName(typeof(Resources), nameof(Resources.SectionStart_DisplayName))]
[ResourcesDescription(typeof(Resources), nameof(Resources.SectionStart_Description))]
- public RoundedDouble SectionStart
- {
- get
- {
- return new RoundedDouble(2);
- }
- }
+ public RoundedDouble SectionStart { get; }
[PropertyOrder(3)]
[ResourcesCategory(typeof(Resources), nameof(Resources.Categories_General))]
[ResourcesDisplayName(typeof(Resources), nameof(Resources.SectionEnd_DisplayName))]
[ResourcesDescription(typeof(Resources), nameof(Resources.SectionEnd_Description))]
- public RoundedDouble SectionEnd
- {
- get
- {
- return new RoundedDouble(2);
- }
- }
+ public RoundedDouble SectionEnd { get; }
[PropertyOrder(4)]
[ResourcesCategory(typeof(Resources), nameof(Resources.Categories_General))]