private void ProcessSelectionQuestion() //選擇題處理工作 { const int ADDRESS_ZERO = 0; //位置0 const int ADDRESS_ONE = 1; //位置1 const int ADDRESS_TWO = 2; //位置2 const int ADDRESS_THREE = 3; //位置3 _questionGroupBoxText = QUESTION_ABBREVIATION + (_vocabularyMode.NumberOfAnswered + 1).ToString() + SELECTION_QUESTION_TIP; //選擇題題目說明 _selection = _vocabularyMode.CreateNewSelectionQuestion(); //產生新題目 _firstRadioButtonText = LEFT_BRACKETS + (ADDRESS_ZERO + 1).ToString() + RIGHT_BRACKETS + BLANK + _selection[ADDRESS_ZERO]; //設定選項1 _secondRadioButtonText = LEFT_BRACKETS + (ADDRESS_ONE + 1).ToString() + RIGHT_BRACKETS + BLANK + _selection[ADDRESS_ONE]; //設定選項2 _thirdRadioButtonText = LEFT_BRACKETS + (ADDRESS_TWO + 1).ToString() + RIGHT_BRACKETS + BLANK + _selection[ADDRESS_TWO]; //設定選項3 _fourthRadioButtonText = LEFT_BRACKETS + (ADDRESS_THREE + 1).ToString() + RIGHT_BRACKETS + BLANK + _selection[ADDRESS_THREE]; //設定選項4 _isFillQuestionTableLayoutPanelVisiabled = false; //不顯示填充題 _isSelectionQuestionTableLayoutPanelVisabled = true; //顯示選擇題 _vocabularyMode.SpeechSelectionQuestion(); _isAnswerTextBoxEnabled = false; }
public void SpeechSelectionQuestionTest() { VocabularyMode target = new VocabularyMode(); // TODO: 初始化為適當值 target.Initialize(); target.CreateNewSelectionQuestion(); target.SpeechSelectionQuestion(); }