void AddNewFeedInfo() { using (frmFeed frm = new frmFeed(DialogRole.New, mainNavBar)) { if (frm.ShowDialog(OwnerForm) == DialogResult.OK) { if (CurrentItem == null) { return; } FetchedFeeds.Remove(CurrentItem.Caption); NavBarHelper.SetNavBarItemImage(CurrentItem, CurrentUrl); UpdateSelectedLinkData(); } } }
void EditCurrentFeedInfo() { if (CurrentItem == null) { return; } frmFeed frm = new frmFeed(DialogRole.Edit, mainNavBar); string key = CurrentItem.Caption; string url = CurrentUrl; if (frm.ShowDialog(OwnerForm) == DialogResult.OK) { if (url != CurrentUrl || key != CurrentItem.Caption) { FetchedFeeds.Remove(key); } NavBarHelper.SetNavBarItemImage(CurrentItem, CurrentUrl); UpdateSelectedLinkData(); } }
public void Initialize() { feed = new frmFeed(new NamedOption("", 100, 100, new Point(3, 4)), @"\Testing\"); }