private void buttRecall_Click(object sender, EventArgs e) { if (GetWords().Any(w => w.archived && w.CanTest())) { formTestRecall test = new formTestRecall(); test.main = this; test.testUnlearned = false; test.Show(); this.Hide(); } else { MessageBox.Show("No learned words that haven't been tested recently."); } }
private void buttStudyWords_Click(object sender, EventArgs e) { var relevantWords = GetWords(); if (relevantWords.Any(w => !w.archived && w.CanTest())) { formTestRecall test = new formTestRecall(); test.main = this; test.testUnlearned = true; test.Show(); this.Hide(); } else if (relevantWords.Any(w => !w.archived)) { MessageBox.Show("No new words that haven't been tested recently."); } else { MessageBox.Show("No new words."); } }
private void buttStudyWords_Click(object sender, EventArgs e) { var relevantWords = GetWords(); if (relevantWords.Any(w => !w.archived && w.CanTest())) { formTestRecall test = new formTestRecall(); test.main = this; test.testUnlearned = true; test.Show(); this.Hide(); } else if (relevantWords.Any(w => !w.archived)) MessageBox.Show("No new words that haven't been tested recently."); else MessageBox.Show("No new words."); }
private void buttRecall_Click(object sender, EventArgs e) { if (GetWords().Any(w => w.archived && w.CanTest())) { formTestRecall test = new formTestRecall(); test.main = this; test.testUnlearned = false; test.Show(); this.Hide(); } else MessageBox.Show("No learned words that haven't been tested recently."); }