예제 #1
0
 public void PressStartButton(int numberOfQuestions, int questionType)  //按下Start按鈕
 {
     _vocabularyMode.NumberOfQuestion = numberOfQuestions;
     _vocabularyMode.QuestionType     = questionType;
     _isStartButtonEnabled            = false;
     _startToolStripMenuItemEnabled   = false;
     _isNextButtonEnabled             = true;
     _nextToolStripMenuItemEnabled    = true;
     _isAnswerTextBoxEnabled          = true;
     _isStopButtonEnabled             = true;
     _stopToolStripMenuItemEnabled    = true;
     _isChooseNumberOfQuestionLayoutPanelVisiabled = false;
     _statusBarText = EMPTY;
     _isStartTest   = true;
     _vocabularyMode.CreateQuestionType();  // 隨機選擇題型
     CreateQuestion();
 }