Ejemplo n.º 1
0
 public Form1()
 {
     InitializeComponent();
     WebCrawer myWebCrawer = new WebCrawer(this);
     myWebCrawer.craw();
     myWebCrawer.weatherCraw();
     myWebCrawer.govCraw();
     comboBox3.TextChanged += ComboBox3_TextChanged;
 }
Ejemplo n.º 2
0
 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() });
     }
 }
Ejemplo n.º 3
0
 private void DownloadItem_Click(object sender, EventArgs e)
 {
     WebCrawer myWebCrawer = new WebCrawer(this);
     downloadLabel temp = sender as downloadLabel;
     if (temp.url == null)
     {
         MessageBox.Show("無Key!!");
     }
     else
     {
         myWebCrawer.govCraw(new string[] { comboBox3.Text,temp.url });
     }
 }