예제 #1
0
        public void Next()
        {
            if (IsEnd)
            {
                return;
            }
            IsActive = true;

            Task.Run(() => {
                var videos = User.UserInstance.GetUserVideo();

                if (videos == null)
                {
                    IsEnd    = true;
                    IsActive = false;
                    return;
                }

                foreach (var video in videos)
                {
                    UserVideoList.Add(new SearchResultEntryViewModel(video));
                }

                IsActive = false;
            });
        }
예제 #2
0
        public void Initialize()
        {
            IsActive = true;

            Task.Run(() => {
                var videos = User.UserInstance.GetUserVideo();

                if (videos == null)
                {
                    if (UserVideoList.Count == 0)
                    {
                        //非公開、又は表示期限切れ
                        Closed = true;
                    }
                    IsEnd    = true;
                    IsActive = false;
                    return;
                }

                foreach (var video in videos)
                {
                    UserVideoList.Add(new SearchResultEntryViewModel(video));
                }

                IsActive = false;
            });
        }
예제 #3
0
        public async void GetPage()
        {
            IsActive = true;

            UserVideoList.Clear();

            var videos = await User.UserInstance.GetUserVideoAsync(CurrentPage);

            if (videos == null)
            {
                if (UserVideoList.Count == 0)
                {
                    //非公開、又は表示期限切れ
                    Closed = true;
                }
                IsActive = false;
                return;
            }


            foreach (var video in videos)
            {
                UserVideoList.Add(new SearchResultEntryViewModel(video));
            }


            IsActive = false;
        }