private void btnShowFrequencyDictionaryForOutputText_Click(object sender, EventArgs e) { new FrequentDictForm(FrequentCounter.countAppearencesOfLetter(outputTextBox.Text)).Show(); }
private void btnShowFreqDict_Click(object sender, EventArgs e) { var dict = FrequentCounter.countAppearencesOfLetter(outputTextBox.Text); new FreqDictForm(dict.OrderByDescending(x => x.Value).Select(x => x.Value).ToArray()).ShowDialog(this); }