예제 #1
0
 public ListOfFeeds()
 {
     InitializeComponent();
     news = new News();
     UpdateList = new UpdateFeedListFile();
     if (File.Exists(feedsName))
     {
         FeedList.Items.AddRange(File.ReadAllLines(feedsName));
     }
 }
예제 #2
0
        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));
                }
            }
        }