Ejemplo n.º 1
0
        protected override IIncrementalSource <RankedVideoInfoControlViewModel> GenerateIncrementalSource()
        {
            IsFailedRefreshRanking.Value = false;

            var categoryInfo = RequireCategoryInfo != null ? RequireCategoryInfo : CategoryInfo;

            IIncrementalSource <RankedVideoInfoControlViewModel> source = null;

            try
            {
                var target   = SelectedRankingTarget.Value.TargetType;
                var timeSpan = SelectedRankingTimeSpan.Value.TimeSpan;
                source = new CategoryRankingLoadingSource(HohoemaApp, PageManager, RankingCategory, target, timeSpan);

                CanChangeRankingParameter.Value = true;
            }
            catch
            {
                IsFailedRefreshRanking.Value = true;
            }


            return(source);
        }
Ejemplo n.º 2
0
        protected override IIncrementalSource <RankedVideoInfoControlViewModel> GenerateIncrementalSource()
        {
            IsFailedRefreshRanking.Value = false;

            var categoryInfo = RankingCategory;

            IIncrementalSource <RankedVideoInfoControlViewModel> source = null;

            try
            {
                var target   = SelectedRankingTarget.Value;
                var timeSpan = SelectedRankingTimeSpan.Value;
                source = new CategoryRankingLoadingSource(categoryInfo, target, timeSpan, NicoVideoProvider, NgSettings);

                CanChangeRankingParameter.Value = true;
            }
            catch
            {
                IsFailedRefreshRanking.Value = true;
            }


            return(source);
        }
 public IncrementalLoadingObservableCollection(IIncrementalSource <T> source)
 {
     _incrementalSource = source;
 }
 public HohoemaIncrementalLoadingCollection(IIncrementalSource <ITEM_VM> source, int itemsPerPage = 20, Action onStartLoading = null, Action onEndLoading = null, Action <Exception> onError = null) : base(source, itemsPerPage, onStartLoading, onEndLoading, onError)
 {
 }