Пример #1
0
        /// <summary>
        /// This creates a new tab to view introduction
        /// </summary>
        /// <param name="name"></param>
        /// <param name="select"></param>
        public void addIntroTab(string name, bool select)
        {
            // Create the new oTab class and tab page
            oTabIntroPage tabIntroPage = new oTabIntroPage(this, toolStrip, panelMain, mainToolStrip, name);

            tabs.Add(tabIntroPage);

            tabController.TabPages.Add(tabIntroPage.WorkingPage);
            tabIntroPage.WorkingPage.ImageIndex = tabController.ImageList.Images.IndexOfKey(@"info.ico");

            if (select)
            {
                tabs[tabController.SelectedIndex].deactivate();
                tabController.SelectedTab = tabIntroPage.WorkingPage;
                tabs[tabIntroPage.WorkingPage.TabIndex].activate();
            }
            activeTab = tabController.SelectedIndex;
        }
Пример #2
0
        /// <summary>
        /// This creates a new tab to view introduction
        /// </summary>
        /// <param name="name"></param>
        /// <param name="select"></param>
        public void addIntroTab(string name, bool select)
        {
            // Create the new oTab class and tab page
            oTabIntroPage tabIntroPage = new oTabIntroPage(this, toolStrip, panelMain, mainToolStrip, name);
            tabs.Add(tabIntroPage);

            tabController.TabPages.Add(tabIntroPage.WorkingPage);
            tabIntroPage.WorkingPage.ImageIndex = tabController.ImageList.Images.IndexOfKey(@"info.ico");

            if (select)
            {
                tabs[tabController.SelectedIndex].deactivate();
                tabController.SelectedTab = tabIntroPage.WorkingPage;
                tabs[tabIntroPage.WorkingPage.TabIndex].activate();
            }
            activeTab = tabController.SelectedIndex;
        }