コード例 #1
0
        private void OnBrowserDocumentComplete(BrowserTab tab)
        {
            //check if already in the list
            for (int k = 0; k < parent.mnuWindows.MenuItems.Count; k++)
            {
                if (parent.mnuWindows.MenuItems[k].Text == tab.Text)
                {
                    return;
                }
            }

            MenuItemEx item = new MenuItemEx(tab.Text, new EventHandler(WindowsClick));

            item.MergeType = MenuMerge.MergeItems;
            item.Tab       = tab;
            parent.mnuWindows.MenuItems.Add(item);
        }
コード例 #2
0
        private void WindowsClick(object sender, EventArgs e)
        {
            MenuItemEx item = sender as MenuItemEx;

            item.Tab.Show(parent.dockPanel);
        }