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

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

            VideoList.SetVideos(videos);
            Counter.setSize(videos.Count);
        }
Beispiel #2
0
 private void button1_Click(object sender, System.EventArgs e)
 {
     SetCurrentVideo(VideoList.GetVideo(Counter.GetCounter()));
     if (Counter.GetCounter() == 5)
     {
         button2.Show();
     }
     Counter.HitCounter();
 }
Beispiel #3
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();
        }
Beispiel #4
0
 private void SetupWebBrowser()
 {
     this.SetCurrentVideo(VideoList.GetVideo(Counter.GetCounter()));
     Counter.HitCounter();
 }