Exemple #1
0
        public void RemTab(TabGadget tab)
        {
            int index = tabs.IndexOf(tab);

            if (index >= 0)
            {
                tabs.RemoveAt(index);
                tabHeaders.RemoveAt(index);
            }
        }
Exemple #2
0
        public TabGadget AddTab(string label, Orientation orientation)
        {
            TabGadget tab = new TabGadget(this, label, orientation, Alignment.Fill);

            tabs.Add(tab);
            TabHeaderGadget head = new TabHeaderGadget(this, label);

            head.GadgetUp += Head_GadgetUp;
            tabHeaders.Add(head);
            return(tab);
        }