Index: Ringtoets/Revetment/src/Ringtoets.Revetment.Forms/Views/WaveConditionsInputView.cs
===================================================================
diff -u -ra48939a116b21f3fec9bbf92e180818439aa7f89 -r5ef2f44bca31b92735dff724f97b717c7c55f912
--- Ringtoets/Revetment/src/Ringtoets.Revetment.Forms/Views/WaveConditionsInputView.cs (.../WaveConditionsInputView.cs) (revision a48939a116b21f3fec9bbf92e180818439aa7f89)
+++ Ringtoets/Revetment/src/Ringtoets.Revetment.Forms/Views/WaveConditionsInputView.cs (.../WaveConditionsInputView.cs) (revision 5ef2f44bca31b92735dff724f97b717c7c55f912)
@@ -26,7 +26,6 @@
using Core.Common.Util.Extensions;
using Core.Components.Chart.Data;
using Core.Components.Chart.Forms;
-using Ringtoets.Common.Data.AssessmentSection;
using Ringtoets.Common.Data.Calculation;
using Ringtoets.Common.Data.Hydraulics;
using Ringtoets.Common.Forms.Factories;
@@ -46,7 +45,6 @@
private readonly Observer calculationObserver;
private readonly Observer calculationInputObserver;
private readonly Observer hydraulicBoundaryLocationCalculationObserver;
- private readonly Observer assessmentSectionObserver;
private readonly ChartDataCollection chartDataCollection;
private readonly ChartLineData foreshoreChartData;
@@ -65,12 +63,10 @@
/// Creates a new instance of .
///
/// The calculation to show in the view.
- /// The assessment section the calculation belongs to.
- /// for obtaining the .
+ /// The for obtaining the .
/// The style which should be applied to the .
/// Thrown when any input parameter is null.
public WaveConditionsInputView(ICalculation calculation,
- IAssessmentSection assessmentSection,
Func getHydraulicBoundaryLocationCalculationFunc,
IWaveConditionsInputViewStyle inputViewStyle)
{
@@ -79,11 +75,6 @@
throw new ArgumentNullException(nameof(calculation));
}
- if (assessmentSection == null)
- {
- throw new ArgumentNullException(nameof(assessmentSection));
- }
-
if (getHydraulicBoundaryLocationCalculationFunc == null)
{
throw new ArgumentNullException(nameof(getHydraulicBoundaryLocationCalculationFunc));
@@ -100,15 +91,13 @@
calculationObserver = new Observer(UpdateChartTitle);
calculationInputObserver = new Observer(UpdateCalculationInput);
- assessmentSectionObserver = new Observer(UpdateCalculationInput);
hydraulicBoundaryLocationCalculationObserver = new Observer(UpdateChartData);
this.calculation = calculation;
calculationObserver.Observable = calculation;
calculationInputObserver.Observable = calculation.InputParameters;
hydraulicBoundaryLocationCalculationObserver.Observable = getHydraulicBoundaryLocationCalculationFunc();
- assessmentSectionObserver.Observable = assessmentSection;
chartDataCollection = new ChartDataCollection(RingtoetsCommonFormsResources.Calculation_Input);
foreshoreChartData = RingtoetsChartDataFactory.CreateForeshoreGeometryChartData();
@@ -158,7 +147,6 @@
{
calculationObserver.Dispose();
calculationInputObserver.Dispose();
- assessmentSectionObserver.Dispose();
if (disposing)
{
@@ -177,7 +165,6 @@
private void UpdateChartData()
{
SetChartData();
-
chartDataCollection.Collection.ForEachElementDo(cd => cd.NotifyObservers());
}