public ListPage(SearchResult searchResult) { Provider = searchResult.Provider; SearchInfo = searchResult.SearchInfo; TotalPages = searchResult.PagesCount; CurrentPage = 1; _entries = new GalleryEntryCollection(this, searchResult.Entries); }
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)); }