Beispiel #1
0
        private void GenerateQuiz(Category curCat, int questionsAmount)
        {
            QuestionClass qc = new QuestionClass();

            qc.GenerateQuestions(questionsAmount, curCat);
            ListOfQuestions = qc.QuizQuestions;
        }
Beispiel #2
0
 public fMain()
 {
     try
     {
         InitializeComponent();
         DataManager.Setup();
         FillListBox();
         QuestionClass aa = new QuestionClass();
         aa.GenerateQuestions(10, DataManager.QuizCategories.First());
     }
     catch (Exception ex)
     {
         throw new Exception("Ładowanie głównej formatki.", ex);
     }
 }