예제 #1
0
        private void SetupVideos()
        {
            this.backendDomain.SetupDatabase();

            var videos = this.backendDomain.GetVideos() as List <VideoDatabaseResposne>;

            VideoList.SetVideos(videos);
            Counter.setSize(videos.Count);
        }
예제 #2
0
        private void button2_Click(object sender, System.EventArgs e)
        {
            var videos = this.backendDomain.GetVideos(true, VideoSearchConstants.GetRandomQuery()) as List <VideoDatabaseResposne>;

            Counter.setSize(videos.Count);
            VideoList.SetVideos(videos);
            this.SetCurrentVideo(VideoList.GetVideo(Counter.GetCounter()));
            Counter.HitCounter();
            button2.Hide();
        }