/// <summary> 設定Questio </summary> public void SetQuestion() { Word word = new Word(ConstantWord.CHINESE, ConstantWord.ENGLISH); DictionaryModel dictionaryModel = new DictionaryModel(); dictionaryModel.ReadFile(ConstantWord.ENGLISH_WORD); TestModel testModel = new TestModel(dictionaryModel); }
/// <summary> 初始化 </summary> public TestModel(DictionaryModel dictionaryModel) { this._dictionaryModel = dictionaryModel; dictionaryModel.ReadFile(@"EnglishWord.txt"); }