Esempio n. 1
0
        private void buttonTestKnowledge_Click(object sender, EventArgs e)
        {
            this.wplayer.controls.stop();

            VideoQuiz videoQuiz = new VideoQuiz(1, true);

            videoQuiz.Show();
        }
Esempio n. 2
0
 private void axWindowsMediaPlayer1_PlayStateChange(object sender, AxWMPLib._WMPOCXEvents_PlayStateChangeEvent e)
 {
     if (e.newState == 8)
     {
         if (this.videoNr == 12)
         {
             PlayStory videoQuiz = new PlayStory(13);
             videoQuiz.Show();
             this.Close();
         }
         else if (this.videoNr == 16)
         {
             Quiz quiz = new Quiz(7, 17);
             quiz.Show();
             this.Close();
         }
         else if (this.videoNr == 17)
         {
             FinalScreen final = new FinalScreen();
             final.Show();
             this.Close();
         }
         else
         {
             VideoQuiz videoQuiz = new VideoQuiz(this.videoNr);
             videoQuiz.Show();
             this.Close();
         }
     }
     else if (e.newState == 2)
     {
         this.state = 2;
     }
     else if (e.newState == 3)
     {
         this.state = 3;
     }
 }