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(); } }
private async Task Save() { await _settingsRepository.SaveSettingsAsync(); _anythingChanged = false; _saveCommand.RaiseCanExecuteChanged(); }