public async Task LoadDataAsync() { var loadDataTasks = GetViewModels().Select(vm => vm.LoadDataAsync()); await Task.WhenAll(loadDataTasks); OnPropertyChanged("LastUpdated"); ToursConfig.RemoveDeprecatedTours(Tours.Items); }
private async void Refresh() { var refreshDataTasks = GetViewModels() .Where(vm => !vm.HasLocalData) .Select(vm => vm.LoadDataAsync(true)); await Task.WhenAll(refreshDataTasks); OnPropertyChanged("LastUpdated"); ToursConfig.RemoveDeprecatedTours(Tours.Items); }
protected async override void LoadState(object navParameter) { await this.ViewModel.LoadDataAsync(); ToursConfig.RemoveDeprecatedTours(ViewModel.Items); }