コード例 #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;
            }
        }