private void ResetWithNewVerb() { _ending = _databaseManager.GetRandomVerbEnding(); _currentVerb = _databaseManager.GetRandomVerb(); GuessConjugationTextBox.Text = String.Empty; GuessConjugationTextBox.Foreground = Brushes.Black; VerbLabel.Content = _currentVerb.Infinitive; EndingLabel.Content = _ending.Display; CorrectConjugationLabel.Content = String.Empty; _hasBeenVerified = false; }
public string GetVerbEnding(VerbEnding ending) { string verbEnding = null; if (ending.Voice == Voice.Active) { if (ending.Tense == Tense.Present) { if (ending.Number == VerbNumber.Singular) { if (ending.Person == Person._1st) { verbEnding = Conjugation.Present_1stPerson_Singular_Active_Ending; } else if (ending.Person == Person._2nd) { verbEnding = Conjugation.Present_2ndPerson_Singular_Active_Ending; } else if (ending.Person == Person._3rd) { verbEnding = Conjugation.Present_3rdPerson_Singular_Active_Ending; } } else if (ending.Number == VerbNumber.Plural) { if (ending.Person == Person._1st) { verbEnding = Conjugation.Present_1stPerson_Plural_Active_Ending; } else if (ending.Person == Person._2nd) { verbEnding = Conjugation.Present_2ndPerson_Plural_Active_Ending; } else if (ending.Person == Person._3rd) { verbEnding = Conjugation.Present_3rdPerson_Plural_Active_Ending; } } } } return verbEnding; }