private async void LoadFeed(Uri url) { var feed = await Rss.Load(url); FeedTitle.Text = feed.Title; foreach (var item in feed.Feeditems) { AddRssItem(item); } }
private void btnLoad_Click(object sender, EventArgs e) { if (openFileDialog.ShowDialog() == DialogResult.OK) { using (Stream stream = new FileStream(openFileDialog.FileName, FileMode.Open, FileAccess.Read)) { rss1.Load(stream); LoadControls(); } } }