private void CheckAnswer(string userAnswer) { if (userAnswer == Exercise.CorrectAnswer) { IsCorrect = true; State = ExerciseState.Success; } else { IsCorrect = false; State = ExerciseState.Fail; } }
public void CheckAnswer() { if (Translation == TranslatedSentence) { IsCorrect = true; State = ExerciseState.Success; } else { IsCorrect = false; State = ExerciseState.Fail; } }
public Context(ExerciseState state) { this.State = state; }