/// <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> /// new新的model和form1 /// </summary> private static void Main() { DictionaryModel dictionaryModel = new DictionaryModel(); TestModel testModel = new TestModel(dictionaryModel); PresentationModel presentationModel = new PresentationModel(testModel); Form form = new UserForm(presentationModel); Application.Run(form); }
/// <summary> 初始化 </summary> public Question(Word word, DictionaryModel dictionaryModel) { this._word = word; this._dictionaryModel = dictionaryModel; _randomVacancySelect = 0; }
/// <summary> 初始化 </summary> public TestModel(DictionaryModel dictionaryModel) { this._dictionaryModel = dictionaryModel; dictionaryModel.ReadFile(@"EnglishWord.txt"); }