コード例 #1
0
        private bool _canRefresh; //todo: fix bad behaviour. If RaiseExecuteChanged is raised, nothing is happening
        private async Task Refresh()
        {
            _canRefresh = await _permissionsService.CanDownload();

            _refreshCommand.RaiseCanExecuteChanged();
            if (_canRefresh)
            {
                await _articleRepository.ActualizeAllArticlesAsync();
            }
        }
コード例 #2
0
        private async Task Save()
        {
            await _settingsRepository.SaveSettingsAsync();

            _anythingChanged = false;
            _saveCommand.RaiseCanExecuteChanged();
        }