Пример #1
0
        public bool PauseUpdating()
        {
            if (_progress.GetIsUpdatingStarted())
            {
                if (_progress.GetIsUpdatingPaused())
                {
                    _progress.SetUpdatingUnpaused();
                }
                else
                {
                    _progress.SetUpdatingPaused();
                }

                return(true);
            }
            else
            {
                return(false);
            }
        }
        public async Task StartUpdatesAsync()
        {
            if (!_progress.GetIsUpdatingStarted())
            {
                _progress.SetUpdatingStarted();

                await InitializeWorkDataAsync();

                _progress.SetUpdatingCompleted();
            }
        }