예제 #1
0
        private void OpenSynchronizer(Api api)
        {
            _synchronizer = new Synchronizer(api, _db);

            _synchronizer.FeedUpdated += _synchronizer_FeedUpdated;

            _notifications = new NotificationsForm(_synchronizer);
        }
예제 #2
0
        private void CloseSynchronizer()
        {
            if (_notifications != null)
            {
                _notifications.Dispose();
                _notifications = null;
            }

            if (_synchronizer != null)
            {
                _synchronizer.Dispose();
                _synchronizer = null;
            }
        }