private void LoadFeed() { // Get the BBC news RSS feed Feed feed = new Feed("http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml"); feed.Update(); // Create a view of the items itemsView = new BindingListView<Item>(feed.Items); // Make the grid display this view itemsGrid.DataSource = itemsView; }
private void LoadFeed() { // Get the BBC news RSS feed Feed feed = new Feed("http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml"); feed.Update(); // Create a view of the items itemsView = new BindingListView <Item>(feed.Items); // Make the grid display this view itemsGrid.DataSource = itemsView; }
private void LoadFeeds() { string[] urls = { "http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml", "http://channel9.msdn.com/rss.aspx", }; foreach (string url in urls) { Feed feed = new Feed(url); feed.Update(); // Add to the list box so we can check/uncheck the feed feedsListBox.Items.Add(feed); } }