예제 #1
0
        private void RunAsync()
        {
            WebScraper wb = new WebScraper(this.txtLink.Text);

            var s = wb.CommittedExpenses();
            //s, "tabela", "Tabela"
            ExcelOutput eo = new ExcelOutput(s, this.txtFile.Text, this.txtSheet.Text);

            eo.Save();
        }
예제 #2
0
        private void BW_DoWork(object sender, System.ComponentModel.DoWorkEventArgs e)
        {
            int        i;
            WebScraper wb = new WebScraper(this.txtLink.Text);
            var        s  = wb.CommittedExpenses();

            for (i = 0; i <= 50; i++)
            {
                bw.ReportProgress(i);
            }

            ExcelOutput eo = new ExcelOutput(s, this.txtFile.Text, this.txtSheet.Text);

            eo.Save(this.txtFile.Text);

            for (; i <= 100; i++)
            {
                bw.ReportProgress(i);
            }
        }