Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/Views/MacroStabilityInwardsCalculationsView.cs =================================================================== diff -u -rc81209dddbbead08af5e7e5f5433ded5fca0fb0c -rf8889a513703b85c4d3919795b306fdf4eb2e06f --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/Views/MacroStabilityInwardsCalculationsView.cs (.../MacroStabilityInwardsCalculationsView.cs) (revision c81209dddbbead08af5e7e5f5433ded5fca0fb0c) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Forms/Views/MacroStabilityInwardsCalculationsView.cs (.../MacroStabilityInwardsCalculationsView.cs) (revision f8889a513703b85c4d3919795b306fdf4eb2e06f) @@ -52,7 +52,7 @@ private const int stochasticSoilProfileColumnIndex = 2; private const int selectableHydraulicBoundaryLocationColumnIndex = 4; - private readonly Observer assessmentSectionObserver; + private readonly Observer hydraulicBoundaryLocationsObserver; private readonly RecursiveObserver inputObserver; private readonly RecursiveObserver calculationGroupObserver; private readonly RecursiveObserver calculationObserver; @@ -76,7 +76,7 @@ InitializeListBox(); failureMechanismObserver = new Observer(OnFailureMechanismUpdate); - assessmentSectionObserver = new Observer(UpdateSelectableHydraulicBoundaryLocationsColumn); + hydraulicBoundaryLocationsObserver = new Observer(UpdateSelectableHydraulicBoundaryLocationsColumn); // The concat is needed to observe the input of calculations in child groups. inputObserver = new RecursiveObserver(UpdateDataGridViewDataSource, cg => cg.Children .Concat(cg.Children @@ -129,7 +129,7 @@ { assessmentSection = value; - assessmentSectionObserver.Observable = assessmentSection; + hydraulicBoundaryLocationsObserver.Observable = assessmentSection?.HydraulicBoundaryDatabase.Locations; UpdateSelectableHydraulicBoundaryLocationsColumn(); } @@ -184,7 +184,7 @@ dataGridViewControl.CellFormatting -= OnCellFormatting; dataGridViewControl.CurrentRowChanged -= DataGridViewOnCurrentRowChangedHandler; - assessmentSectionObserver.Dispose(); + hydraulicBoundaryLocationsObserver.Dispose(); failureMechanismObserver.Dispose(); inputObserver.Dispose(); calculationObserver.Dispose();