예제 #1
0
 public ListPage(SearchResult searchResult)
 {
     Provider    = searchResult.Provider;
     SearchInfo  = searchResult.SearchInfo;
     TotalPages  = searchResult.PagesCount;
     CurrentPage = 1;
     _entries    = new GalleryEntryCollection(this, searchResult.Entries);
 }
예제 #2
0
        public override async Task RefreshAsync()
        {
            frompage      = topage = CurrentPage;
            SelectedIndex = -1;
            var searchResult = await Provider.SearchAsync(SearchInfo, CurrentPage);

            TotalPages = searchResult.PagesCount;
            _entries   = new GalleryEntryCollection(this, searchResult.Entries);
            OnPropertyChanged(nameof(Entries));
        }