Example #1
0
        public void ProcessFile()
        {
            //vars
            ITextCounterManager ITextManager = new TextCounterManager();

            var result = ITextManager.ProcessFile(FileRoot);
        }
Example #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            OpenFileDialog openFileDialog = new OpenFileDialog();

            openFileDialog.Multiselect = false;

            openFileDialog.Filter = "*.txt|*.txt";

            openFileDialog.ShowDialog();

            textBox1.Text = openFileDialog.FileName;

            ITextCounterManager ITextManager = new TextCounterManager();

            var result = ITextManager.ProcessFile(textBox1.Text);

            listBox1.Items.Add(textBox1.Text + " - " + result);
        }