示例#1
0
        void DelButton_Click(object sender, EventArgs e)
        {
            RibbonListItem rli = ((RibbonButton)sender).Parent as RibbonListItem;

            if (rli != null)
            {
                atb.JumpList.RemoveFromKnownCategories((C1JumpPath)rli.Tag);
                rpc.Ribbon.ApplicationMenu.RightPaneItems.Remove(rli);
                rli.Dispose();
            }
        }
示例#2
0
        void DelButton_Click(object sender, EventArgs e)
        {
            RibbonListItem rli = ((RibbonButton)sender).Parent as RibbonListItem;

            if (rli != null)
            {
                string s = (string)rli.Tag;
                for (int i = 0; i < _recentItems.Count; i++)
                {
                    if (_recentItems[i] == s)
                    {
                        _recentItems.RemoveAt(i);
                        break;
                    }
                }
                fv.Ribbon.ApplicationMenu.RightPaneItems.Remove(rli);
                rli.Dispose();
            }
        }