Exemple #1
0
 private void btnGetValue_Click(object sender, EventArgs e)
 {
     btnGetValue.Enabled = false;
     YVN = new YoukuVideoNotify();
     ok1Count = 0;
     ok2Count = 0;
     errorCount = 0;
     indexNum = 0;
     CmbInit();
     txtResult.AppendText(DateTime.Now.ToString("HH:mm:ss")+"开始读取优酷用户最新视频...\r\n");
     for (int i = 0; i <int.Parse(CmbThreadCount.SelectedItem.ToString()); i++)
     {
         new Thread(BeginGet) { IsBackground = true}.Start();
     }
     //EmailManager.SMTP smtp = new EmailManager.SMTP();
     //smtp.Send("*****@*****.**", "新视频通知", txtResult.Text);
 }
Exemple #2
0
 private void btnGetValue_Click(object sender, EventArgs e)
 {
     YoukuVideoNotify YVN = new YoukuVideoNotify();
     txtResult.Text=YVN.GetSiteValueByXpath(txtSiteUrl.Text,txtXpath.Text);
 }