Esempio n. 1
0
        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.");
            }
        }
Esempio n. 2
0
        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.");
            }
        }
Esempio n. 3
0
        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.");
        }
Esempio n. 4
0
        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.");
        }