Beispiel #1
0
 /// <summary>
 /// 导出txt按钮事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnGet_Click(object sender, EventArgs e)
 {
     saveFileDialog1.Filter = "文本文件|*.txt";
     saveFileDialog1.FileName = "Email";
     if (saveFileDialog1.ShowDialog() != System.Windows.Forms.DialogResult.OK)
     {
         return;
     }
     EmailClass ec = new EmailClass();
     ec.Path = saveFileDialog1.FileName;
     ec.Content = webBrowser1.DocumentText;
     if (ec.Content == null || ec.Content == "") return;
     Thread th = new Thread(DownEmail);
     th.IsBackground = true;
     th.Start(ec);
 }