Exemplo n.º 1
0
        private void play_button_Click(object sender, EventArgs e)
        {
            this.wplayer.controls.stop();
            this.selectImagePlayer.controls.stop();
            this.wplayer2.controls.stop();
            this.speakerPlayer.controls.stop();

            if (quizNr == 2)
            {
                QuizWithoutAnswers quiz = new QuizWithoutAnswers(this.quizNr + 1, nextVideo, isFinalQuiz);
                quiz.Show();
                this.Close();
            }
            else if (quizNr == 6)
            {
                if (isFinalQuiz)
                {
                    new VideoQuiz(nextVideo, isFinalQuiz).Show();
                    this.Close();
                }
                else
                {
                    PlayStory play = new PlayStory(nextVideo);
                    play.Show();
                    this.Close();
                }
            }
            else if (quizNr == 8)
            {
                if (isFinalQuiz)
                {
                    new FinalScreen().Show();
                    this.Close();
                }
                else
                {
                    PlayStory play = new PlayStory(nextVideo);
                    play.Show();
                    this.Close();
                }
            }
            else
            {
                Quiz quiz = new Quiz(this.quizNr + 1, nextVideo, isFinalQuiz);
                quiz.Show();
                this.Close();
            }
        }
Exemplo n.º 2
0
        private void play_button_Click(object sender, EventArgs e)
        {
            this.wplayer.controls.stop();

            if (quizNr == 3 && !isFinalQuiz)
            {
                PlayStory playStory = new PlayStory(nextVideo);
                playStory.Show();
                this.Close();
            }
            else if (isFinalQuiz)
            {
                new VideoQuiz(nextVideo, isFinalQuiz).Show();
                this.Close();
            }
            else
            {
                QuizWithoutAnswers quiz = new QuizWithoutAnswers(this.quizNr + 1, nextVideo, isFinalQuiz);
                quiz.Show();
                this.Close();
            }
        }