Exemple #1
0
 public GalleryViewModel(EHApi api, EHGalleryTag tag)
 {
     Api   = api;
     Title = "EHentai";
     ResetTag(tag);
     Source = new LoadingCollection <IIncrementalSource <EHGallery>, EHGallery>(this);
 }
Exemple #2
0
 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();
 }