private void btnStart_Click(object sender, EventArgs e) { foreach (var i in indexList) { if (FileMng.wordDatas[i].answer.Count == 0) { MessageBox.Show(FileMng.wordDatas[i].word + "의 정답을 입력해주세요"); return; } } foreach (var i in indexList) { FileMng.wordDatas[i].cnt++; FileMng.wordDatas[i].date = DateTime.Now.AddMinutes(58); } // 단어 삭제 foreach (var i in removeList) { FileMng.wordDatas.RemoveAt(i); } FileMng.SaveData(); if (frmBrowser != null) { frmBrowser.Close(); } frmAnswerLists.Clear(); List <int> indexReviewList = WordSelection.SelectReviewWords(); if (indexReviewList.Count == 0) { frmMain.ShowWindowAsync(MdiParent.Handle, 2); Close(); return; } frmStudy = new frmStudy(); frmStudy.MdiParent = MdiParent; frmStudy.Dock = DockStyle.Fill; frmStudy.Show(); Close(); }
private void frmCheckWords_Load(object sender, EventArgs e) { indexList = WordSelection.SelectStudyWords(); frmAnswerLists = new List <frmAnswerList>(); removeList = new List <int>(); if (indexList.Count == 0) { frmStudy = new frmStudy(); frmStudy.MdiParent = MdiParent; frmStudy.Dock = DockStyle.Fill; frmStudy.Show(); Close(); } foreach (var i in indexList) { AddWordSlot(i); } }