Example #1
0
        private async void button3_Click(object sender, EventArgs e)
        {
            status = scrapeStatus.scrapingProxies;
            await Task.Run(() =>
            {
                ScraperLogic.buildScrapeList();
                ScraperLogic.scrapeProxyPages();
                proxyList = new ConcurrentBag <string>(ScraperLogic.scrapeProxies().Distinct().ToList());
                textBox1.BeginInvoke(new Action(() =>
                {
                    textBox1.Lines = proxyList.ToArray();
                }));
            });

            status = scrapeStatus.testingProxies;
            testProxyList();
        }
Example #2
0
 private async void button1_Click(object sender, EventArgs e)
 {
     status = scrapeStatus.scrapingProxies;
     await Task.Run(() =>
     {
         label1.BeginInvoke(new Action(() =>
         {
             label1.ForeColor = Color.DarkGreen;
             label1.Text      = "Scraping Proxies";
         }));
         ScraperLogic.buildScrapeList();
         ScraperLogic.scrapeProxyPages();
         proxyList = new ConcurrentBag <string>(ScraperLogic.scrapeProxies().Distinct().ToList());
         textBox1.BeginInvoke(new Action(() =>
         {
             textBox1.Lines = proxyList.ToArray();
         }));
     });
 }
Example #3
0
        private async void button1_Click(object sender, EventArgs e)
        {
            status = scrapeStatus.scrapingProxies;
            await Task.Run(() =>
            {
                label1.BeginInvoke(new Action(() =>
                {
                    label1.ForeColor = Color.DarkGreen;
                    label1.Text = "Scraping Proxies";
                }));
                ScraperLogic.buildScrapeList();
                ScraperLogic.scrapeProxyPages();
                proxyList = new ConcurrentBag<string>(ScraperLogic.scrapeProxies().Distinct().ToList());
                textBox1.BeginInvoke(new Action(() =>
                {
                    textBox1.Lines = proxyList.ToArray();
                }));
            });


        }
Example #4
0
        private async void button3_Click(object sender, EventArgs e)
        {
            status = scrapeStatus.scrapingProxies;
            await Task.Run(() =>
            {
                ScraperLogic.buildScrapeList();
                ScraperLogic.scrapeProxyPages();
                proxyList = new ConcurrentBag<string>(ScraperLogic.scrapeProxies().Distinct().ToList());
                textBox1.BeginInvoke(new Action(() =>
                {
                    textBox1.Lines = proxyList.ToArray();
                }));
            });

            status = scrapeStatus.testingProxies;
            testProxyList();
        }