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(); }
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(); })); }); }
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(); })); }); }
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(); }