using System; using Core.Common.Base.Data; using Ringtoets.Common.Data.FailureMechanism; namespace Ringtoets.Common.Forms.Views { public class SimpleFailureMechanismSectionResultRow { public SimpleFailureMechanismSectionResultRow(SimpleFailureMechanismSectionResult sectionResult) { if (sectionResult == null) { throw new ArgumentNullException("sectionResult"); } SectionResult = sectionResult; } private SimpleFailureMechanismSectionResult SectionResult { get; set; } public string Name { get { return SectionResult.Section.Name; } } public bool AssessmentLayerOne { get { return SectionResult.AssessmentLayerOne; } set { SectionResult.AssessmentLayerOne = value; SectionResult.NotifyObservers(); } } public AssessmentLayerTwoAResult AssessmentLayerTwoA { get { return SectionResult.AssessmentLayerTwoA; } set { SectionResult.AssessmentLayerTwoA = value; } } public RoundedDouble AssessmentLayerTwoB { get { return SectionResult.AssessmentLayerTwoB; } set { SectionResult.AssessmentLayerTwoB = value; } } public RoundedDouble AssessmentLayerThree { get { return SectionResult.AssessmentLayerThree; } set { SectionResult.AssessmentLayerThree = value; } } } }