Index: Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/PresentationObjects/ClosingStructuresContext.cs
===================================================================
diff -u -r078878de01a4c060d2366b7406fe5236940827ad -rd705284acf98d459d09b5b2afd48ec3a629c9a3f
--- Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/PresentationObjects/ClosingStructuresContext.cs (.../ClosingStructuresContext.cs) (revision 078878de01a4c060d2366b7406fe5236940827ad)
+++ Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/PresentationObjects/ClosingStructuresContext.cs (.../ClosingStructuresContext.cs) (revision d705284acf98d459d09b5b2afd48ec3a629c9a3f)
@@ -36,22 +36,33 @@
/// Creates an instance of .
///
/// The wrapped containing .
+ /// The failure mechanism which the closing structures belong to.
/// The assessment section which the closing structures belong to.
/// Thrown when any of the input arguments are null.
- public ClosingStructuresContext(ObservableList closingStructures, IAssessmentSection assessmentSection)
+ public ClosingStructuresContext(ObservableList closingStructures, ClosingStructuresFailureMechanism failureMechanism, IAssessmentSection assessmentSection)
: base(closingStructures)
{
if (assessmentSection == null)
{
throw new ArgumentNullException("assessmentSection");
}
+ if (failureMechanism == null)
+ {
+ throw new ArgumentNullException("failureMechanism");
+ }
+ ParentFailureMechanism = failureMechanism;
AssessmentSection = assessmentSection;
}
///
/// Gets the assessment section of this instance.
///
public IAssessmentSection AssessmentSection { get; private set; }
+
+ ///
+ /// Gets the failure mechanism of this instance.
+ ///
+ public ClosingStructuresFailureMechanism ParentFailureMechanism { get; private set; }
}
}
\ No newline at end of file
Index: Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Plugin/ClosingStructuresPlugin.cs
===================================================================
diff -u -rb5accd775c390fa85f815ef13c3c3e54a6d10ada -rd705284acf98d459d09b5b2afd48ec3a629c9a3f
--- Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Plugin/ClosingStructuresPlugin.cs (.../ClosingStructuresPlugin.cs) (revision b5accd775c390fa85f815ef13c3c3e54a6d10ada)
+++ Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Plugin/ClosingStructuresPlugin.cs (.../ClosingStructuresPlugin.cs) (revision d705284acf98d459d09b5b2afd48ec3a629c9a3f)
@@ -24,6 +24,7 @@
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
+using Core.Common.Base;
using Core.Common.Controls.TreeView;
using Core.Common.Gui.ContextMenu;
using Core.Common.Gui.Forms.ProgressDialog;
@@ -125,6 +126,8 @@
ForeColor = context => context.WrappedData.Any() ? Color.FromKnownColor(KnownColor.ControlText) : Color.FromKnownColor(KnownColor.GrayText),
ChildNodeObjects = context => context.WrappedData.Cast