Index: Ringtoets/WaveImpactAsphaltCover/src/Ringtoets.WaveImpactAsphaltCover.Forms/Views/WaveImpactAsphaltCoverFailureMechanismResultView.cs
===================================================================
diff -u -r94f68f51cd9b8fd8c0c162cf874ef7e4580b0ee4 -r006d78c3ccc43be477099e52212aa835138f7df4
--- Ringtoets/WaveImpactAsphaltCover/src/Ringtoets.WaveImpactAsphaltCover.Forms/Views/WaveImpactAsphaltCoverFailureMechanismResultView.cs (.../WaveImpactAsphaltCoverFailureMechanismResultView.cs) (revision 94f68f51cd9b8fd8c0c162cf874ef7e4580b0ee4)
+++ Ringtoets/WaveImpactAsphaltCover/src/Ringtoets.WaveImpactAsphaltCover.Forms/Views/WaveImpactAsphaltCoverFailureMechanismResultView.cs (.../WaveImpactAsphaltCoverFailureMechanismResultView.cs) (revision 006d78c3ccc43be477099e52212aa835138f7df4)
@@ -39,16 +39,27 @@
///
/// Creates a new instance of .
///
+ /// The failure mechanism this view belongs to.
/// The collection of failure mechanism section results.
- /// Thrown when
- /// is null.
+ /// Thrown when any input parameter is null.
public WaveImpactAsphaltCoverFailureMechanismResultView(
+ WaveImpactAsphaltCoverFailureMechanism failureMechanism,
IObservableEnumerable failureMechanismSectionResults)
: base(failureMechanismSectionResults)
{
+ if (failureMechanism == null)
+ {
+ throw new ArgumentNullException(nameof(failureMechanism));
+ }
+
+ FailureMechanism = failureMechanism;
DataGridViewControl.CellFormatting += OnCellFormatting;
+
+ UpdateDataGridViewDataSource();
}
+ public WaveImpactAsphaltCoverFailureMechanism FailureMechanism { get; }
+
protected override object CreateFailureMechanismSectionResultRow(WaveImpactAsphaltCoverFailureMechanismSectionResult sectionResult)
{
return new WaveImpactAsphaltCoverFailureMechanismSectionResultRow(sectionResult);