private void button1_Click(object sender, EventArgs e) { if (comboBox1.Text == "") { MessageBox.Show("You must select a target.", "No target", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } else { string server = comboBox1.Text; StatusBoxWrite("Initiating Attack. Check Progress Bar."); if (force_checkbox.Checked) { StatusBoxWrite("Force Crawl selected. Bypassing site validity check."); } crawler = new XtreamCrawler(dictionary, server, 10, force_checkbox.Checked, uppercase_check.Checked); crawler_worker = new BackgroundWorker(); crawler_worker.DoWork += new DoWorkEventHandler(crawler.DoCrawl); crawler_worker.RunWorkerAsync(); progressBar1.Maximum = dictionary.entries.Count; button1.Enabled = false; timer1.Interval = 100; timer1.Start(); } }