private void WordCount_Click(object sender, EventArgs e) { WordTab wrdTab = new WordTab(); Parser parser = new Parser(wrdTab); try { parser.Parse(textBox1.Text); String table = wrdTab.GetTab(); wrdTab.PrintTab(table, OutputBox); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public Parser(WordTab wrdTab) { space = wrdTab; }