示例#1
0
 private void QuizImplementator()
 {
     if (questionProvider != null)
     {
         QuestionProvider.DeleteProvider();
     }
     QuestionProvider.Reps      = System.Convert.ToInt32(textBox_repNumber.Text);
     QuestionProvider.RepsWrong = System.Convert.ToInt32(textBox_repWrongNumber.Text);
     QuestionProvider.FileURL   = fileUrl;
     questionProvider           = QuestionProvider.GetInstance();
 }
示例#2
0
        // METODY POMOCNICZE

        private void initialization()
        {
            questionProvider       = QuestionProvider.GetInstance();
            beginingQuestionsCount = questionProvider.questionsCount();

            if (questionProvider.questionsCount() <= 0)
            {
                MessageBox.Show("Pleas load file with correct content");
            }
            else
            {
                quizLogicService = new QuizLogic();
                actualQuestion   = questionProvider.getQuestion(rnd.Next(questionProvider.questionsCount() - 1));
                fillContent(actualQuestion);
            }
        }