Index: Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/PresentationObjects/ClosingStructuresCalculationGroupContext.cs
===================================================================
diff -u -rf88343c0590cb04c7135ce141872940e59325927 -r8b60c9e846480f3ffeeb263bfea5d3367bf6bee3
--- Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/PresentationObjects/ClosingStructuresCalculationGroupContext.cs (.../ClosingStructuresCalculationGroupContext.cs) (revision f88343c0590cb04c7135ce141872940e59325927)
+++ Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/PresentationObjects/ClosingStructuresCalculationGroupContext.cs (.../ClosingStructuresCalculationGroupContext.cs) (revision 8b60c9e846480f3ffeeb263bfea5d3367bf6bee3)
@@ -40,13 +40,18 @@
/// Creates a new instance of .
///
/// The instance that is wrapped by this context object.
+ /// The that owns the wrapped calculation group.
/// The failure mechanism which contains the calculation group.
/// The assessment section which contains the calculation group.
- /// Thrown when any of the input parameters are null.
+ /// Thrown when any of the input parameters are null, except for .
public ClosingStructuresCalculationGroupContext(CalculationGroup calculationGroup,
+ CalculationGroup parent,
ClosingStructuresFailureMechanism failureMechanism,
IAssessmentSection assessmentSection)
- : base(calculationGroup, failureMechanism, assessmentSection) {}
+ : base(calculationGroup, failureMechanism, assessmentSection)
+ {
+ Parent = parent;
+ }
///
/// Gets the available foreshore profiles.
@@ -69,5 +74,7 @@
return FailureMechanism.ClosingStructures;
}
}
+
+ public CalculationGroup Parent { get; }
}
}
\ No newline at end of file