Пример #1
0
        private void startTraining_Click(object sender, RoutedEventArgs e)
        {
            Sentencer.SetText(textBox.Text.ToLower());
            Sentencer.Sentencing();
            SentenceWindow sentencesDissordered = new SentenceWindow();

            sentencesDissordered.Show();
            this.Close();
        }
Пример #2
0
        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();
            }
        }
Пример #3
0
 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";
     }
 }
Пример #4
0
 private void nextButton_Click(object sender, RoutedEventArgs e)
 {
     Sentencer.NextSent();
     sentenceLabel.Content = "Press the Show button to see the sentence";
     wordsBox_update();
 }