Index: Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/Views/HeightStructuresFailureMechanismSectionResultRow.cs =================================================================== diff -u -r5bdb5ecc12d8c8e7ef49b63f0a40dfbdd2532d54 -r673e35de0df920529e5dda63ea8b4dfb08ed65a8 --- Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/Views/HeightStructuresFailureMechanismSectionResultRow.cs (.../HeightStructuresFailureMechanismSectionResultRow.cs) (revision 5bdb5ecc12d8c8e7ef49b63f0a40dfbdd2532d54) +++ Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Forms/Views/HeightStructuresFailureMechanismSectionResultRow.cs (.../HeightStructuresFailureMechanismSectionResultRow.cs) (revision 673e35de0df920529e5dda63ea8b4dfb08ed65a8) @@ -21,87 +21,34 @@ using System; using System.ComponentModel; -using Core.Common.Base.Data; -using Ringtoets.Common.Data.FailureMechanism; using Ringtoets.Common.Forms.TypeConverters; +using Ringtoets.Common.Forms.Views; using Ringtoets.HeightStructures.Data; namespace Ringtoets.HeightStructures.Forms.Views { /// /// This class represents a row of . /// - internal class HeightStructuresFailureMechanismSectionResultRow + internal class HeightStructuresFailureMechanismSectionResultRow : FailureMechanismSectionResultRow { - private readonly HeightStructuresFailureMechanismSectionResult sectionResult; - /// /// Creates a new instance of . /// /// The this row contains. /// Thrown when is null. - public HeightStructuresFailureMechanismSectionResultRow(HeightStructuresFailureMechanismSectionResult sectionResult) - { - if (sectionResult == null) - { - throw new ArgumentNullException("sectionResult"); - } - this.sectionResult = sectionResult; - } + public HeightStructuresFailureMechanismSectionResultRow(HeightStructuresFailureMechanismSectionResult sectionResult) : base(sectionResult) {} /// - /// Gets the name of the . + /// Gets the assessment layer two a of the . /// - public string Name - { - get - { - return sectionResult.Section.Name; - } - } - - /// - /// Gets or sets the assessment layer one of the . - /// - public bool AssessmentLayerOne - { - get - { - return sectionResult.AssessmentLayerOne; - } - set - { - sectionResult.AssessmentLayerOne = value; - sectionResult.NotifyObservers(); - } - } - - /// - /// Gets the assessment layer two a of the . - /// [TypeConverter(typeof(FailureMechanismSectionResultNoProbabilityValueDoubleConverter))] public double AssessmentLayerTwoA { get { - return sectionResult.AssessmentLayerTwoA; + return SectionResult.AssessmentLayerTwoA; } } - - /// - /// Gets or sets the assessment layer three of the . - /// - [TypeConverter(typeof(NoValueRoundedDoubleConverter))] - public RoundedDouble AssessmentLayerThree - { - get - { - return sectionResult.AssessmentLayerThree; - } - set - { - sectionResult.AssessmentLayerThree = value; - } - } } } \ No newline at end of file