Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/AssemblyResultPerSectionView.cs =================================================================== diff -u -rc704dafc81a213131e51f78b19fee63c14a9a5a5 -r407e8e07eed3bf16bac838855a7fdfdfd39f22ac --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/AssemblyResultPerSectionView.cs (.../AssemblyResultPerSectionView.cs) (revision c704dafc81a213131e51f78b19fee63c14a9a5a5) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/Views/AssemblyResultPerSectionView.cs (.../AssemblyResultPerSectionView.cs) (revision 407e8e07eed3bf16bac838855a7fdfdfd39f22ac) @@ -50,6 +50,7 @@ /// public partial class AssemblyResultPerSectionView : UserControl, IView { + private readonly Observer assessmentSectionObserver; private readonly Observer assessmentSectionResultObserver; /// @@ -68,6 +69,10 @@ AssessmentSection = assessmentSection; InitializeComponent(); + assessmentSectionObserver = new Observer(EnableRefreshButton) + { + Observable = assessmentSection + }; assessmentSectionResultObserver = new Observer(EnableRefreshButton) { Observable = new AssessmentSectionResultObserver(assessmentSection) @@ -92,11 +97,10 @@ protected override void Dispose(bool disposing) { - dataGridViewControl.CellFormatting -= HandleCellStyling; - if (disposing) { components?.Dispose(); + assessmentSectionObserver.Dispose(); assessmentSectionResultObserver.Dispose(); }