//纯背词模式 private void EasyModeBtn_Click(object sender, EventArgs e) { this.MainWin.SubView.Controls.Clear(); switch (WordSource.SelectedIndex) { //四级 case 0: if (WordList == null) { MainWin.WordRecord = RecordService.WordLearning(MainWin.User, 4, WordNum); WordList = MainWin.WordRecord.RecordWords; StudyPanel = new WordStudyControl(MainWin, WordList, 0); } StudyPanel = new WordStudyControl(MainWin, WordList, 0); this.MainWin.SubView.Controls.Add(StudyPanel); break; //六级 case 1: if (WordList == null) { MainWin.WordRecord = RecordService.WordLearning(MainWin.User, 6, WordNum); WordList = MainWin.WordRecord.RecordWords; StudyPanel = new WordStudyControl(MainWin, WordList, 0); } StudyPanel = new WordStudyControl(MainWin, WordList, 0); this.MainWin.SubView.Controls.Add(StudyPanel); break; } }
private void StartLearn_Click(object sender, EventArgs e) { if (CustomWords.Count != 0) { this.MainWin.SubView.Controls.Clear(); MainWin.WordRecord = new Record(); WordStudyControl study = new WordStudyControl(MainWin, RecordService.ShowUserWords(MainWin.User, 3), 0); this.MainWin.SubView.Controls.Add(study); } }
private void button2_Click(object sender, EventArgs e) { //开始学习文章里的单词 WordStudyControl studyWord = null; MainWin.ParaRecord = TempRecord; this.MainWin.SubView.Controls.Clear(); MainWin.ParaRecord.RecordParas.ForEach(p => { if (p.ParaTitle == this.label1.Text) { p.IsRead = true; } }); MainWin.ParaRecord.RecordParas.ForEach(p => { if (p.ParaTitle == this.label1.Text) { studyWord = new WordStudyControl(MainWin, p.CoreWords, 1); } this.MainWin.SubView.Controls.Add(studyWord); }); }