示例#1
0
文件: Main.cs 项目: klb3713/workspace
 private void Updatechannel_Click(object sender, EventArgs e)
 {
     string rsstitle = string.Empty;
     int rssid;
     if (ChantreeView.SelectedNode != null)
     {
         rsstitle = ChantreeView.SelectedNode.Text;
     }
     ArrayList Rsslist = new InfoSource().RssList;
     for (int i = 0; i < Rsslist.Count; i++)
     {
         if (((Rss)Rsslist[i]).RssTitle == rsstitle)
         {
             rssid = ((Rss)Rsslist[i]).RssId;
             HtmlBuilder newbuilder = new HtmlBuilder(rssid);
             return;
         }
     }
 }
示例#2
0
 /// <summary>
 ///更新指定ID的RSS
 /// </summary>
 /// <param name="id">被更新的RSS的ID</param>
 public void GetHtmlsById(int id)
 {
     if (!InfoSource.GetUpdateStatuById(id))
     {
         HtmlBuilder builder = new HtmlBuilder(id);
     }
 }