Ejemplo n.º 1
0
        private void LoadQuestion()
        {
            this.currentQuestion = QuestionBank.GenerateQuestion();
            this.questionLabel.Text = this.currentQuestion.QuestionText;
            this.answerButton1.Text = this.currentQuestion.Answers[0];
            this.answerButton2.Text = this.currentQuestion.Answers[1];
            this.answerButton3.Text = this.currentQuestion.Answers[2];
            this.answerButton4.Text = this.currentQuestion.Answers[3];
            this.questionPanel.BringToFront();

            this.UpdateScore();
        }
Ejemplo n.º 2
0
        private void LoadQuestion()
        {
            this.currentQuestion = QuestionBank.GenerateQuestion();
            this.questionLabel.Text = string.Format(CultureInfo.CurrentCulture, "Question {0} of {1}\n\n{2}", this.questionIndex + 1, QuestionsPerGame, this.currentQuestion.QuestionText);
            this.answerButton1.Text = this.currentQuestion.Answers[0];
            this.answerButton2.Text = this.currentQuestion.Answers[1];
            this.answerButton3.Text = this.currentQuestion.Answers[2];
            this.answerButton4.Text = this.currentQuestion.Answers[3];
            this.questionPanel.BringToFront();

            this.UpdateScore();
        }