public Form1() { InitializeComponent(); WebCrawer myWebCrawer = new WebCrawer(this); myWebCrawer.craw(); myWebCrawer.weatherCraw(); myWebCrawer.govCraw(); comboBox3.TextChanged += ComboBox3_TextChanged; }
private void button2_Click(object sender, EventArgs e) { WebCrawer myWebCrawer = new WebCrawer(this); if (comboBox2.SelectedValue == null) { MessageBox.Show("無Key!!"); } else { myWebCrawer.weatherCraw(new string[] { comboBox2.Text, comboBox2.SelectedValue.ToString() }); } }