Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
        /// <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);
        }
Ejemplo n.º 3
0
 /// <summary> 初始化 </summary>
 public Question(Word word, DictionaryModel dictionaryModel)
 {
     this._word            = word;
     this._dictionaryModel = dictionaryModel;
     _randomVacancySelect  = 0;
 }
Ejemplo n.º 4
0
 /// <summary> 初始化 </summary>
 public TestModel(DictionaryModel dictionaryModel)
 {
     this._dictionaryModel = dictionaryModel;
     dictionaryModel.ReadFile(@"EnglishWord.txt");
 }