private void OpenSynchronizer(Api api) { _synchronizer = new Synchronizer(api, _db); _synchronizer.FeedUpdated += _synchronizer_FeedUpdated; _notifications = new NotificationsForm(_synchronizer); }
private void CloseSynchronizer() { if (_notifications != null) { _notifications.Dispose(); _notifications = null; } if (_synchronizer != null) { _synchronizer.Dispose(); _synchronizer = null; } }