示例#1
0
 public ListeningForm()
 {
     this.index = 0;
     this.questionsGenerator = new QuestionsGenerator();
     this.questionsList      = this.questionsGenerator.ListeningTestQuestions();
     this.userAnswers        = new List <string>();
     this.rightAnswers       = new List <string>();
     this.sndplayr           = new SoundPlayer();
     InitializeComponent();
     rightAnswers = this.GetRightAnswers(this.questionsList);
     this.SetParameters(questionsList.ElementAt(0));
     this.label_score.Visible = false;
     this.MaximizeBox         = false;
     this.StartPosition       = FormStartPosition.CenterScreen;
     this.FormBorderStyle     = FormBorderStyle.FixedDialog;
 }
示例#2
0
 public Form1()
 {
     this.index              = 0;
     this.timeLeft           = 0;
     this.questionsGenerator = new QuestionsGenerator();
     this.questionsList      = this.questionsGenerator.CultureQuizzQuestions();
     this.userAnswers        = new List <string>();
     this.rightAnswers       = new List <string>();
     InitializeComponent();
     rightAnswers = this.GetRightAnswers(this.questionsList);
     this.SetParameters(questionsList.ElementAt(0));
     this.button_Display_Right_Answers.Enabled = false;
     this.label_score.Visible = false;
     this.MaximizeBox         = false;
     this.StartPosition       = FormStartPosition.CenterScreen;
     this.FormBorderStyle     = FormBorderStyle.FixedDialog;
 }