Index: Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Data/ClosingStructuresCalculation.cs
===================================================================
diff -u -r98929f84fbf311bd19d8e61cc8499cdb40b22ea0 -r93baa4ee308eff5a157e37bd2b4fe148a45806af
--- Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Data/ClosingStructuresCalculation.cs (.../ClosingStructuresCalculation.cs) (revision 98929f84fbf311bd19d8e61cc8499cdb40b22ea0)
+++ Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Data/ClosingStructuresCalculation.cs (.../ClosingStructuresCalculation.cs) (revision 93baa4ee308eff5a157e37bd2b4fe148a45806af)
@@ -77,5 +77,10 @@
{
return Output;
}
+
+ public override string ToString()
+ {
+ return Name;
+ }
}
}
\ No newline at end of file
Index: Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/Views/ClosingStructuresScenariosView.Designer.cs
===================================================================
diff -u -r9fffdfe86ac1685eb9369e2190c26181e3613cb1 -r93baa4ee308eff5a157e37bd2b4fe148a45806af
--- Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/Views/ClosingStructuresScenariosView.Designer.cs (.../ClosingStructuresScenariosView.Designer.cs) (revision 9fffdfe86ac1685eb9369e2190c26181e3613cb1)
+++ Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/Views/ClosingStructuresScenariosView.Designer.cs (.../ClosingStructuresScenariosView.Designer.cs) (revision 93baa4ee308eff5a157e37bd2b4fe148a45806af)
@@ -28,19 +28,6 @@
///
private System.ComponentModel.IContainer components = null;
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
#region Component Designer generated code
///
Index: Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/Views/ClosingStructuresScenariosView.cs
===================================================================
diff -u -r2190156241cd307f0d9d784f2ff50ed339c3beac -r93baa4ee308eff5a157e37bd2b4fe148a45806af
--- Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/Views/ClosingStructuresScenariosView.cs (.../ClosingStructuresScenariosView.cs) (revision 2190156241cd307f0d9d784f2ff50ed339c3beac)
+++ Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Forms/Views/ClosingStructuresScenariosView.cs (.../ClosingStructuresScenariosView.cs) (revision 93baa4ee308eff5a157e37bd2b4fe148a45806af)
@@ -19,9 +19,15 @@
// Stichting Deltares and remain full property of Stichting Deltares at all times.
// All rights reserved.
+using System;
+using System.Collections.Generic;
+using System.Linq;
using System.Windows.Forms;
+using Core.Common.Base;
using Core.Common.Controls.Views;
using Ringtoets.ClosingStructures.Data;
+using Ringtoets.ClosingStructures.Utils;
+using Ringtoets.Common.Data.Calculation;
namespace Ringtoets.ClosingStructures.Forms.Views
{
@@ -32,19 +38,104 @@
///
public partial class ClosingStructuresScenariosView : UserControl, IView
{
+ private readonly RecursiveObserver calculationInputObserver;
+ private readonly RecursiveObserver calculationGroupObserver;
+ private readonly Observer failureMechanismObserver;
+ private ClosingStructuresFailureMechanism failureMechanism;
+ private CalculationGroup data;
+
///
/// Creates a new instance of .
///
public ClosingStructuresScenariosView()
{
InitializeComponent();
+
+ failureMechanismObserver = new Observer(UpdateDataGridViewDataSource);
+
+ // The concat is needed to observe the input of calculations in child groups.
+ calculationInputObserver = new RecursiveObserver(
+ UpdateDataGridViewDataSource, cg => cg.Children.Concat