Index: Riskeer/Common/src/Riskeer.Common.Forms/Views/CalculationsView.cs
===================================================================
diff -u -r4819ca0dccbbe9e2ed5e5dc8f9dcdc3a328aa57e -r233f7dac7b44875cd668fb17835800a318db9ac3
--- Riskeer/Common/src/Riskeer.Common.Forms/Views/CalculationsView.cs (.../CalculationsView.cs) (revision 4819ca0dccbbe9e2ed5e5dc8f9dcdc3a328aa57e)
+++ Riskeer/Common/src/Riskeer.Common.Forms/Views/CalculationsView.cs (.../CalculationsView.cs) (revision 233f7dac7b44875cd668fb17835800a318db9ac3)
@@ -126,6 +126,11 @@
protected IAssessmentSection AssessmentSection { get; }
///
+ /// Gets the selected failure mechanism section.
+ ///
+ protected FailureMechanismSection SelectedFailureMechanismSection => listBox.SelectedItem as FailureMechanismSection;
+
+ ///
/// Gets an indicator whether the view is loaded.
///
protected bool Loaded { get; private set; }
@@ -243,15 +248,15 @@
};
// The concat is needed to observe the input of calculations in child groups.
- inputObserver = new RecursiveObserver(UpdateDataGridViewDataSource, pcg => pcg.Children.Concat