示例#1
0
        private void AddRssToolStripMenuItem_Click(object sender, EventArgs e)
        {
            wvNews.DocumentText = "";

            FrmNewRss frmNewRss = new FrmNewRss(controller);
            var       answer    = frmNewRss.ShowDialog();

            switch (answer)
            {
            case DialogResult.OK:

                feeds.Add(frmNewRss.feed);
                UpdateFeedsTreeViewNodes();

                ReloadNews(true);
                UpdateNewsListItems();

                break;

            case DialogResult.Cancel:
                break;

            default:
                break;
            }
        }
示例#2
0
        private void AddFeed()
        {
            FrmNewRss frmNewRss = new FrmNewRss(controller);
            var       answer    = frmNewRss.ShowDialog();

            if (answer == DialogResult.OK)
            {
                feeds.Add(frmNewRss.feed);
                UpdateListItems();
            }
        }
示例#3
0
        private void EditFeed(int selectedIndex)
        {
            Feed selectedFeed = feeds[selectedIndex];

            var frmNewRss = new FrmNewRss(controller, selectedFeed);
            var answer    = frmNewRss.ShowDialog();

            if (answer == DialogResult.OK)
            {
                UpdateListItems();
            }
        }