private void Enter_Click(object sender, RoutedEventArgs e)
{
Enter.IsEnabled = false;
Back.IsEnabled = false;
Answer.Visibility = Visibility.Visible;
string yourWord = Word.Text;
string originalWord = puzzle.getSpellingsList().ElementAt(puzzle.getActiveCount()).getWord();
if (string.Equals(yourWord,originalWord, StringComparison.OrdinalIgnoreCase))
{
puzzle.setTotalCorrect(puzzle.getTotalCorrect() + 1);
Response.Text = "You got the right word !";
}
else {
puzzle.setTotalWrong(puzzle.getTotalWrong() + 1);
Response.Text = "Sorry, the word you entered is wrong!";
}
}