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; } }
private void AddFeed() { FrmNewRss frmNewRss = new FrmNewRss(controller); var answer = frmNewRss.ShowDialog(); if (answer == DialogResult.OK) { feeds.Add(frmNewRss.feed); UpdateListItems(); } }
private void EditFeed(int selectedIndex) { Feed selectedFeed = feeds[selectedIndex]; var frmNewRss = new FrmNewRss(controller, selectedFeed); var answer = frmNewRss.ShowDialog(); if (answer == DialogResult.OK) { UpdateListItems(); } }