internal void StartNewGame(string QuizTopicName)
        {
            var quizTestProvider = new QuizTestProvider();

            quiz = quizTestProvider.GetTestByName(QuizTopicName);
            HideAllForms();
            questionForm.Show(quiz);
        }
Example #2
0
        public void Next(int i)
        {
            if (questionForm != null)
            {
                answers[questionForm.question.position] = questionForm.GetAnswer();
                questionForm.Close();
            }

            if (i < questions.Length)
            {
                QuestNumLabel.Text = $"{questions.Length}/{i + 1}";
                PointWorth.Text    = $"{questions[i].question.Point}";
                questionForm       = new QuestionForm(this, questions[i], i, random);
                questionForm.Show();
            }
            else
            {
                Finish();
            }
        }