Example #1
0
        private void GalleryTab_OnSelected(object sender, RoutedEventArgs e)
        {
            QueryStartUp();
            MessageQueue.Enqueue("正在获取收藏夹...");

            PixivHelper.DoIterate(new GalleryIterator(Identity.Global.Id), ImageListViewNewItemSource());
        }
Example #2
0
        private void FollowingTab_OnSelected(object sender, RoutedEventArgs e)
        {
            QueryStartUp();
            MessageQueue.Enqueue("正在获取关注列表...");

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

            PixivHelper.DoIterate(new RankingIterator(), ImageListViewNewItemSource(), true);
        }
Example #4
0
        private void UpdateIllustTab_OnSelected(object sender, RoutedEventArgs e)
        {
            QueryStartUp();
            MessageQueue.Enqueue("正在获取关注用户的最新作品...");

            PixivHelper.DoIterate(new UserUpdateIterator(), ImageListViewNewItemSource());
        }
Example #5
0
        private void SpotlightTab_OnSelected(object sender, RoutedEventArgs e)
        {
            QueryStartUp();

            var iterator = new SpotlightQueryIterator(Settings.Global.SpotlightQueryStart, Settings.Global.QueryPages);

            PixivHelper.DoIterate(iterator, NewItemsSource <SpotlightArticle>(SpotlightListView), true);
        }
Example #6
0
 private void SetupUserGallery(string id)
 {
     PixivHelper.DoIterate(new GalleryIterator(id), NewItemsSource <Illustration>(UserIllustsImageListView));
 }
Example #7
0
 private void QueryWorks(string keyword)
 {
     QueryStartUp();
     PixivHelper.DoIterate(new QueryIterator(keyword, Settings.Global.QueryStart), NewItemsSource <Illustration>(ImageListView), true);
 }
Example #8
0
        private void TryQueryUser(string keyword)
        {
            QueryStartUp();

            PixivHelper.DoIterate(new UserPreviewIterator(keyword), NewItemsSource <User>(UserPreviewListView));
        }
Example #9
0
        private void SetupFavorite()
        {
            atUploadSelector = false;

            PixivHelper.DoIterate(new GalleryIterator(user.Id), UiHelper.NewItemsSource <Illustration>(ImageListView));
        }
Example #10
0
        private void SetupUploads()
        {
            atUploadSelector = true;

            PixivHelper.DoIterate(new UploadIterator(user.Id), UiHelper.NewItemsSource <Illustration>(ImageListView));
        }