예제 #1
0
		private async void LoadFeed(Uri url)
		{
			var feed = await Rss.Load(url);
			FeedTitle.Text = feed.Title;
			foreach (var item in feed.Feeditems)
			{
				AddRssItem(item);
			}
		}
예제 #2
0
        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();
                }
            }
        }