private void crawlButton_Click(object sender, EventArgs e) { crawler.AddStartUrl(txtStartUrl.Text); urlListBox.Items.Clear(); messageListBox.Items.Clear(); messageListBox.Items.Add("开始爬取。"); crawelThread = new Thread(crawler.Crawl); crawelThread.Start(); }