private void FollowingTab_OnSelected(object sender, RoutedEventArgs e)
        {
            QueryStartUp();
            MessageQueue.Enqueue("正在获取关注列表...");

            PixivHelper.Iterate(new UserFollowingAsyncEnumerable(Identity.Global.Id), NewItemsSource <User>(UserPreviewListView));
        }
        private void RankingTab_OnSelected(object sender, RoutedEventArgs e)
        {
            QueryStartUp();
            MessageQueue.Enqueue("正在获取每日推荐的作品...");

            PixivHelper.Iterate(new RankingAsyncEnumerable(Settings.Global.SortOnInserting ? SortOption.Popularity : SortOption.PublishDate), ImageListViewNewItemSource(), 10);
        }
        private void UpdateIllustTab_OnSelected(object sender, RoutedEventArgs e)
        {
            QueryStartUp();
            MessageQueue.Enqueue("正在获取关注用户的最新作品...");

            PixivHelper.Iterate(new UserUpdateAsyncEnumerable(), ImageListViewNewItemSource());
        }
        private void GalleryTab_OnSelected(object sender, RoutedEventArgs e)
        {
            QueryStartUp();
            MessageQueue.Enqueue("正在获取收藏夹...");

            PixivHelper.Iterate(new GalleryAsyncEnumerable(Identity.Global.Id), ImageListViewNewItemSource());
        }
Exemple #5
0
        private void RankingTab_OnSelected(object sender, RoutedEventArgs e)
        {
            QueryStartUp();
            MessageQueue.Enqueue("正在获取每日推荐的作品...");

            PixivHelper.Iterate(new RankingAsyncEnumerable(), ImageListViewNewItemSource(), 10);
        }
        private void SpotlightTab_OnSelected(object sender, RoutedEventArgs e)
        {
            QueryStartUp();

            var iterator = new SpotlightQueryAsyncEnumerable(Settings.Global.SpotlightQueryStart);

            PixivHelper.Iterate(iterator, NewItemsSource <SpotlightArticle>(SpotlightListView), 10);
        }
Exemple #7
0
 private void PublicRestrictPolicy_OnChecked(object sender, RoutedEventArgs e)
 {
     if (!IsLoaded)
     {
         return;
     }
     if (Navigating(GalleryTab))
     {
         MessageQueue.Enqueue("正在获取收藏夹...");
         PixivHelper.Iterate(AbstractGalleryAsyncEnumerable.Of(Identity.Global.Id, RestrictPolicy.Public), NewItemsSource <Illustration>(ImageListView));
     }
     else if (Navigating(FollowingTab))
     {
         MessageQueue.Enqueue("正在获取关注列表...");
         PixivHelper.Iterate(AbstractUserFollowingAsyncEnumerable.Of(Identity.Global.Id, RestrictPolicy.Public), NewItemsSource <User>(UserPreviewListView));
     }
 }
 private void SetupUserGallery(string id)
 {
     PixivHelper.Iterate(new GalleryAsyncEnumerable(id), NewItemsSource <Illustration>(UserIllustsImageListView));
 }
 private void QueryWorks(string keyword)
 {
     QueryStartUp();
     AppContext.EnqueueSearchHistory(keyword);
     PixivHelper.Iterate(new QueryAsyncEnumerable(keyword, Settings.Global.SortOnInserting ? SortOption.Popularity : SortOption.PublishDate, Settings.Global.QueryStart), NewItemsSource <Illustration>(ImageListView), Settings.Global.QueryPages);
 }
 private void TryQueryUser(string keyword)
 {
     QueryStartUp();
     AppContext.EnqueueSearchHistory(keyword);
     PixivHelper.Iterate(new UserPreviewAsyncEnumerable(keyword), NewItemsSource <User>(UserPreviewListView));
 }
Exemple #11
0
 private void SetupUserGallery(string id)
 {
     PixivHelper.Iterate(AbstractGalleryAsyncEnumerable.Of(id, RestrictPolicy.Public), NewItemsSource <Illustration>(UserIllustsImageListView));
 }
Exemple #12
0
 private void QueryWorks(string keyword)
 {
     QueryStartUp();
     PixivHelper.Iterate(new QueryAsyncEnumerable(keyword, Settings.Global.QueryStart), NewItemsSource <Illustration>(ImageListView), Settings.Global.QueryPages);
 }
Exemple #13
0
        private void TryQueryUser(string keyword)
        {
            QueryStartUp();

            PixivHelper.Iterate(new UserPreviewAsyncEnumerable(keyword), NewItemsSource <User>(UserPreviewListView));
        }