예제 #1
0
        async Task LoadPersonList(ObservableCollection <Person> List, string Path, Dictionary <string, string> Query)
        {
            var results = await Task.Run(() => TMDBService.GetPersonList(Path, Query, 1, 1));

            foreach (var v in results)
            {
                List.Add(v);
            }
        }
예제 #2
0
        public async Task LoadData()
        {
            LoadedPages++;
            var results = await Task.Run(() => TMDBService.GetPersonList(Path, Query, LoadedPages, 1));

            if (results.Count != 0)
            {
                LoadedMore();
            }
            foreach (var v in results)
            {
                People.Add(v);
            }
        }