Exemplo n.º 1
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();
         }
     }
 }
Exemplo n.º 2
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();
            }
        }
Exemplo n.º 3
0
 public void Initialize()
 {
     feed = new frmFeed(new NamedOption("", 100, 100, new Point(3, 4)), @"\Testing\");
 }