Index: Ringtoets/StabilityStoneCover/src/Ringtoets.StabilityStoneCover.Forms/Views/StabilityStoneCoverResultView.cs
===================================================================
diff -u -r94f68f51cd9b8fd8c0c162cf874ef7e4580b0ee4 -rec463ca0f77e891e46aba80bc803690a23c1340e
--- Ringtoets/StabilityStoneCover/src/Ringtoets.StabilityStoneCover.Forms/Views/StabilityStoneCoverResultView.cs (.../StabilityStoneCoverResultView.cs) (revision 94f68f51cd9b8fd8c0c162cf874ef7e4580b0ee4)
+++ Ringtoets/StabilityStoneCover/src/Ringtoets.StabilityStoneCover.Forms/Views/StabilityStoneCoverResultView.cs (.../StabilityStoneCoverResultView.cs) (revision ec463ca0f77e891e46aba80bc803690a23c1340e)
@@ -39,15 +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.
- public StabilityStoneCoverResultView(IObservableEnumerable failureMechanismSectionResults)
+ /// Thrown when any input parameter is null.
+ public StabilityStoneCoverResultView(
+ StabilityStoneCoverFailureMechanism failureMechanism,
+ IObservableEnumerable failureMechanismSectionResults)
: base(failureMechanismSectionResults)
{
+ if (failureMechanism == null)
+ {
+ throw new ArgumentNullException(nameof(failureMechanism));
+ }
+
+ FailureMechanism = failureMechanism;
DataGridViewControl.CellFormatting += DisableIrrelevantFieldsFormatting;
+
+ UpdateDataGridViewDataSource();
}
+ public StabilityStoneCoverFailureMechanism FailureMechanism { get; }
+
protected override object CreateFailureMechanismSectionResultRow(StabilityStoneCoverFailureMechanismSectionResult sectionResult)
{
return new StabilityStoneCoverSectionResultRow(sectionResult);