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

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

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

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

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

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

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

            PixivHelper.Iterate(iterator, NewItemsSource <SpotlightArticle>(SpotlightListView), 10);
        }
Esempio n. 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));
     }
 }
Esempio n. 8
0
 private void SetupUserGallery(string id)
 {
     PixivHelper.Iterate(new GalleryAsyncEnumerable(id), NewItemsSource <Illustration>(UserIllustsImageListView));
 }
Esempio n. 9
0
 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);
 }
Esempio n. 10
0
 private void TryQueryUser(string keyword)
 {
     QueryStartUp();
     AppContext.EnqueueSearchHistory(keyword);
     PixivHelper.Iterate(new UserPreviewAsyncEnumerable(keyword), NewItemsSource <User>(UserPreviewListView));
 }
Esempio n. 11
0
 private void SetupUserGallery(string id)
 {
     PixivHelper.Iterate(AbstractGalleryAsyncEnumerable.Of(id, RestrictPolicy.Public), NewItemsSource <Illustration>(UserIllustsImageListView));
 }
Esempio n. 12
0
 private void QueryWorks(string keyword)
 {
     QueryStartUp();
     PixivHelper.Iterate(new QueryAsyncEnumerable(keyword, Settings.Global.QueryStart), NewItemsSource <Illustration>(ImageListView), Settings.Global.QueryPages);
 }
Esempio n. 13
0
        private void TryQueryUser(string keyword)
        {
            QueryStartUp();

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