private void wordsBox_update() { List <string> words = Sentencer.GetSentence(Sentencer.GetCurrentSent()).GetRndWords(); wordsBox.Text = ""; for (int i = 0; i < words.Count; i++) { wordsBox.Text += words.ElementAt(i).ToString(); } }
private void showButton_Click(object sender, RoutedEventArgs e) { if (sentenceLabel.Content == "Press the Show button to see the sentence") { int current = Sentencer.GetCurrentSent(); sentenceLabel.Content = Sentencer.GetSentence(current).GetSentence(); } else { sentenceLabel.Content = "Press the Show button to see the sentence"; } }