예제 #1
0
 // Assign player new word
 private void NewWord_Click(object sender, RoutedEventArgs e)
 {
     // Reset all values
     word = words.NewWord();
     wordInstance.AddWordCount(tbName.Text);
     wordInstance.ResetWordState();
     buttonPanel.IsEnabled = true;
     ResetButtons();
     NumOfGuesses = 0;
     ChangePicture();
     SetWord(word);
     SetPlayers();
     winnerTxt.Visibility = Visibility.Hidden;
     winnerTxt.Text       = "Determining Winner";
     NextWord             = false;
     NewWordBtn.IsEnabled = false;
 }