public GalleryViewModel(EHApi api, EHGalleryTag tag) { Api = api; Title = "EHentai"; ResetTag(tag); Source = new LoadingCollection <IIncrementalSource <EHGallery>, EHGallery>(this); }
private void ResetTag(EHGalleryTag tag) { AdvSearchEnabled = true; SearchOption = new SearchOption { Keyword = tag.FullName }; _currentBaseUrl = Api.Host; _loadTask = page => Api.Tag(tag.Link, page, Source.LastOrDefault()?.Id ?? 0); Source?.Refresh(); }