Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Forms/PresentationObjects/DikeProfilesContext.cs
===================================================================
diff -u -r8805f03189f521994b42a519bbca7561bf12eb68 -raaad7a7ca8557c045aa8d6d4031be9133d2f34a6
--- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Forms/PresentationObjects/DikeProfilesContext.cs (.../DikeProfilesContext.cs) (revision 8805f03189f521994b42a519bbca7561bf12eb68)
+++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Forms/PresentationObjects/DikeProfilesContext.cs (.../DikeProfilesContext.cs) (revision aaad7a7ca8557c045aa8d6d4031be9133d2f34a6)
@@ -24,6 +24,7 @@
using Core.Common.Controls.PresentationObjects;
using Ringtoets.Common.Data.AssessmentSection;
using Ringtoets.Common.Data.DikeProfiles;
+using Ringtoets.GrassCoverErosionInwards.Data;
namespace Ringtoets.GrassCoverErosionInwards.Forms.PresentationObjects
{
@@ -37,21 +38,31 @@
/// Initializes a new instance of the class.
///
/// The observable list of dike profiles.
+ /// The parent failure mechanism.
/// The parent assessment section.
- /// Thrown when either
- /// or is null.
- public DikeProfilesContext(ObservableList dikeProfilesList, IAssessmentSection parentAssessmentSection) : base(dikeProfilesList)
+ /// Thrown when any input argument is null.
+ public DikeProfilesContext(ObservableList dikeProfilesList, GrassCoverErosionInwardsFailureMechanism parentFailureMechanism, IAssessmentSection parentAssessmentSection) : base(dikeProfilesList)
{
if (parentAssessmentSection == null)
{
throw new ArgumentNullException("parentAssessmentSection");
}
+ if (parentFailureMechanism == null)
+ {
+ throw new ArgumentNullException("parentFailureMechanism");
+ }
ParentAssessmentSection = parentAssessmentSection;
+ ParentFailureMechanism = parentFailureMechanism;
}
///
/// Gets the parent assessment section.
///
public IAssessmentSection ParentAssessmentSection { get; private set; }
+
+ ///
+ /// Gets the parent failure mechanism.
+ ///
+ public GrassCoverErosionInwardsFailureMechanism ParentFailureMechanism { get; private set; }
}
}
\ No newline at end of file
Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Plugin/GrassCoverErosionInwardsPlugin.cs
===================================================================
diff -u -rb66269d1c3435557b993a5daa333612017f6ccfd -raaad7a7ca8557c045aa8d6d4031be9133d2f34a6
--- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Plugin/GrassCoverErosionInwardsPlugin.cs (.../GrassCoverErosionInwardsPlugin.cs) (revision b66269d1c3435557b993a5daa333612017f6ccfd)
+++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Plugin/GrassCoverErosionInwardsPlugin.cs (.../GrassCoverErosionInwardsPlugin.cs) (revision aaad7a7ca8557c045aa8d6d4031be9133d2f34a6)
@@ -118,6 +118,8 @@
.Cast