Пример #1
0
 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();
     }
 }
Пример #2
0
 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();
         }
     }
 }