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