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; } } }
/// <summary> ///更新指定ID的RSS /// </summary> /// <param name="id">被更新的RSS的ID</param> public void GetHtmlsById(int id) { if (!InfoSource.GetUpdateStatuById(id)) { HtmlBuilder builder = new HtmlBuilder(id); } }