public void ShowTab(MetroTabPage tabpage)
        {
            HiddenTabs hiddenTab = this.hidTabs.Find((HiddenTabs bk) => bk.tabpage == tabpage.Name);

            if (hiddenTab != null)
            {
                this.TabPages.Insert(hiddenTab.index, tabpage);
                this.hidTabs.Remove(hiddenTab);
            }
        }
Example #2
0
        /// <summary>
        /// This will check if MetroTabPage is hidden or not
        /// true if hidden otherwise false
        /// </summary>
        public bool IsTabHidden(MetroTabPage tabpage)
        {
            HiddenTabs result = hidTabs.Find(
                delegate(HiddenTabs bk)
            {
                return(bk.tabpage == tabpage.Name);
            }
                );

            return(result != null);
        }
Example #3
0
        /// <summary>
        /// This will show hiddent MetroTabPage from MetroTabControl
        /// </summary>
        /// <param name="tabpage"></param>
        public void ShowTab(MetroTabPage tabpage)
        {
            HiddenTabs result = hidTabs.Find(
                delegate(HiddenTabs bk)
            {
                return(bk.tabpage == tabpage.Name);
            }
                );

            if (result != null)
            {
                this.TabPages.Insert(result.index, tabpage);
                hidTabs.Remove(result);
            }
        }
        public bool IsTabHidden(MetroTabPage tabpage)
        {
            HiddenTabs hiddenTab = this.hidTabs.Find((HiddenTabs bk) => bk.tabpage == tabpage.Name);

            return(hiddenTab != null);
        }