Beispiel #1
0
 public Answer(string ansText, char ansLetter, System.Windows.Forms.PictureBox ansPic, System.Windows.Forms.Label ansLabel,
     bool ansIfCorrect, bool ansIfMarked, Question currentQuestion)
 {
     this.ansPic = ansPic;
     this.ansLabel = ansLabel;
     this.ansLabel.Text = ansText;
     this.ansLetter = ansLetter;
     this.ansIfCorrect = ansIfCorrect;
     this.ansIfMarked = ansIfMarked;
     this.currentQuestion = currentQuestion;
 }
Beispiel #2
0
 private void startQuestion(string question, int qNumber)
 {
     unlockAnswerButtons();
     string picName = "tree_" + qIndex.ToString();
     pictureMoneyTree.Image = getPictureRes(picName);
     pictureMoneyTree.Refresh();
     string tempCat;
     if (!switchRandomUsed) tempCat = currCategoryArray[qIndex - 1];
     else
     {
         tempCat = currCategoryArray[15];
         switchRandomUsed = false;
     }
     currentQuestion = new Question(qIndex, question, pictureQuestionBar, labelQuestion, pictureAnswerA, pictureAnswerB,
         pictureAnswerC, pictureAnswerD, labelAnswerA, labelAnswerB, labelAnswerC, labelAnswerD, 
         qIndex.ToString() + "\\" + tempCat + "\\" + qNumber.ToString(), this);
     labelLevel.Text = "Рівень: " + qIndex.ToString();
     labelLevel.Visible = true;
     labelCategory.Text = "Категорія: " + genCategoryArray[tempCat];
     labelCategory.Visible = true;
     labelNumber.Text = "Номер запитання: " + qNumber.ToString();
     labelNumber.Visible = true;
     currentQuestion.showQuestion();
 }