protected void ResetUI() { TbMotherTongue.Text = ""; TbForeignLang.Text = ""; TbForeignLangSynonym.Text = ""; TbMotherTongue.Select(); }
//Vokabel einlesen public void LoadNextWord() { if (Settings.Default.UserEvaluates) { GroupUserEvaluation.Enabled = false; } if (!Settings.Default.PracticeFastContinue || Settings.Default.UserEvaluates) { TbCorrectAnswer.Text = ""; TbCorrectAnswer.BackColor = SystemColors.Control; } if (book.PracticeMode == PracticeMode.AskForForeignLang) { TbMotherTongue.Text = currentWord.MotherTongue; TbMotherTongue.ReadOnly = true; TbForeignLang.Text = ""; TbForeignLang.ReadOnly = false; TbForeignLang.BackColor = Settings.Default.PracticeInputBackColor; TbForeignLangSynonym.Text = ""; if (string.IsNullOrWhiteSpace(currentWord.ForeignLangSynonym)) { TbForeignLangSynonym.BackColor = DefaultBackColor; TbForeignLangSynonym.ReadOnly = true; } else { TbForeignLangSynonym.ReadOnly = false; TbForeignLangSynonym.BackColor = Settings.Default.PracticeInputBackColor; } TbForeignLang.Select(); } else { TbForeignLang.Text = currentWord.ForeignLang; if (!string.IsNullOrWhiteSpace(currentWord.ForeignLangSynonym)) { TbForeignLangSynonym.Text = currentWord.ForeignLangSynonym; } else { TbForeignLangSynonym.Text = ""; } TbMotherTongue.Text = ""; TbMotherTongue.ReadOnly = false; TbForeignLang.ReadOnly = true; TbForeignLangSynonym.ReadOnly = true; TbMotherTongue.BackColor = Settings.Default.PracticeInputBackColor; TbMotherTongue.Select(); } check = true; solution = true; }