Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Views/CustomProbabilityFailureMechanismSectionResultRow.cs
===================================================================
diff -u -ra883652e0cf7e59e4d086472939379ad9be36472 -r219f8633c1b5b24f9e9aec3e903734fa94775f0e
--- Ringtoets/Common/src/Ringtoets.Common.Forms/Views/CustomProbabilityFailureMechanismSectionResultRow.cs (.../CustomProbabilityFailureMechanismSectionResultRow.cs) (revision a883652e0cf7e59e4d086472939379ad9be36472)
+++ Ringtoets/Common/src/Ringtoets.Common.Forms/Views/CustomProbabilityFailureMechanismSectionResultRow.cs (.../CustomProbabilityFailureMechanismSectionResultRow.cs) (revision 219f8633c1b5b24f9e9aec3e903734fa94775f0e)
@@ -21,12 +21,24 @@
using System;
using Core.Common.Base.Data;
+using Core.Common.Base.Properties;
using Ringtoets.Common.Data.FailureMechanism;
namespace Ringtoets.Common.Forms.Views
{
+ ///
+ /// Container of a , which takes care of the
+ /// representation of properties in a grid.
+ ///
public class CustomProbabilityFailureMechanismSectionResultRow
{
+ ///
+ /// Creates a new instance of .
+ ///
+ /// The that is
+ /// the source of this row.
+ /// Throw when is
+ /// null.
public CustomProbabilityFailureMechanismSectionResultRow(CustomProbabilityFailureMechanismSectionResult sectionResult)
{
if (sectionResult == null)
@@ -36,8 +48,9 @@
SectionResult = sectionResult;
}
- private CustomProbabilityFailureMechanismSectionResult SectionResult { get; set; }
-
+ ///
+ /// Gets the name of the failure mechanism section.
+ ///
public string Name
{
get
@@ -46,6 +59,9 @@
}
}
+ ///
+ /// Gets or sets the value representing whether the section passed the layer 0 assessment.
+ ///
public bool AssessmentLayerOne
{
get
@@ -59,19 +75,25 @@
}
}
+ ///
+ /// Gets or sets the value representing the result of the layer 2a assessment.
+ ///
public string AssessmentLayerTwoA
{
get
{
- var d = (RoundedDouble) (1 / SectionResult.AssessmentLayerTwoA);
- return string.Format(Core.Common.Base.Properties.Resources.ProbabilityPerYearFormat, d);
+ var d = (RoundedDouble) (1/SectionResult.AssessmentLayerTwoA);
+ return string.Format(Resources.ProbabilityPerYearFormat, d);
}
set
{
SectionResult.AssessmentLayerTwoA = (RoundedDouble) double.Parse(value);
}
}
+ ///
+ /// Gets or sets the value representing the result of the layer 2b assessment.
+ ///
public RoundedDouble AssessmentLayerTwoB
{
get
@@ -84,6 +106,9 @@
}
}
+ ///
+ /// Gets or sets the value representing the result of the layer 3 assessment.
+ ///
public RoundedDouble AssessmentLayerThree
{
get
@@ -95,5 +120,7 @@
SectionResult.AssessmentLayerThree = value;
}
}
+
+ private CustomProbabilityFailureMechanismSectionResult SectionResult { get; set; }
}
}
\ No newline at end of file