示例#1
0
 public Form1()
 {
     InitializeComponent();
     WebCrawer myWebCrawer = new WebCrawer(this);
     myWebCrawer.craw();
     myWebCrawer.weatherCraw();
     myWebCrawer.govCraw();
     comboBox3.TextChanged += ComboBox3_TextChanged;
 }
示例#2
0
 private void button1_Click(object sender, EventArgs e)
 {
     WebCrawer myWebCrawer = new WebCrawer(this);
     if (comboBox1.SelectedValue == null)
     {
         MessageBox.Show("無RID!!");
     }
     else
     {
         myWebCrawer.craw(new string[] { comboBox1.Text, comboBox1.SelectedValue.ToString() });
     }
 }