Пример #1
0
 private void btnAnagramResult_Click(object sender, EventArgs e)
 {
     if (TextManipulation.AreStringsAnagrams(textSelection, txtAnagram.Text))
     {
         lblResult.Text = "Yes!";
     }
     else if (!TextManipulation.AreStringsAnagrams(textSelection, txtAnagram.Text))
     {
         lblResult.Text = "No!";
     }
 }
Пример #2
0
 private void btnPallindrome_Click(object sender, EventArgs e)
 {
     if (TextManipulation.IsItAPalindrome(textSelection))
     {
         lblResult.Text = "Yes!";
     }
     else if (!TextManipulation.IsItAPalindrome(textSelection))
     {
         lblResult.Text = "No!";
     }
 }
Пример #3
0
 private void btnLongestSentence_Click(object sender, EventArgs e)
 {
     MessageBox.Show("Longest Sentence: " + TextManipulation.getLongestSentence(txtMain.Text), "Longest Sentence", MessageBoxButtons.OK, MessageBoxIcon.Information);
 }
Пример #4
0
 private void btnMostFrequent_Click(object sender, EventArgs e)
 {
     MessageBox.Show("Most Frequent Word: " + TextManipulation.GetMostFrequentWord(txtMain.Text), "Most Frequent Word", MessageBoxButtons.OK, MessageBoxIcon.Information);
 }
Пример #5
0
 private void btnWordCount_Click(object sender, EventArgs e)
 {
     MessageBox.Show("Word Count: " + TextManipulation.CountWords(txtMain.Text), "Word Count", MessageBoxButtons.OK, MessageBoxIcon.Information);
 }