public ListOfFeeds() { InitializeComponent(); news = new News(); UpdateList = new UpdateFeedListFile(); if (File.Exists(feedsName)) { FeedList.Items.AddRange(File.ReadAllLines(feedsName)); } }
private void FeedList_DoubleClick(object sender, EventArgs e) { if (Convert.ToString(FeedList.SelectedItem) != "") { RssURL.Text = FeedList.SelectedItem.ToString(); if (!news.Visible) { news = new News(); news.Show(); rss_client.MyGlobalTrash.GlobalURL = Convert.ToString(FeedList.SelectedItem); news.LoadFeed(Convert.ToString(FeedList.SelectedItem)); } else { rss_client.MyGlobalTrash.GlobalURL = Convert.ToString(FeedList.SelectedItem); news.LoadFeed(Convert.ToString(FeedList.SelectedItem)); } } }