protected override void Dispose(bool disposing) { if (disposing) { _aimActivityMonitor.StudyAnnotationsChanged -= OnStudyAnnotationsChanged; _aimActivityMonitor.Dispose(); _aimActivityMonitor = null; } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { if (disposing) { Context.SelectionChanged -= OnSelectedStudyChanged; _aimActivityMonitor.IsConnectedChanged -= AimActivityMonitorIsConnectedChanged; _aimActivityMonitor.Dispose(); _aimActivityMonitor = null; } base.Dispose(disposing); }