コード例 #1
0
        public async Task LoadDataAsync()
        {
            var loadDataTasks = GetViewModels().Select(vm => vm.LoadDataAsync());

            await Task.WhenAll(loadDataTasks);

            OnPropertyChanged("LastUpdated");
            ToursConfig.RemoveDeprecatedTours(Tours.Items);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        protected async override void LoadState(object navParameter)
        {
            await this.ViewModel.LoadDataAsync();

            ToursConfig.RemoveDeprecatedTours(ViewModel.Items);
        }