Ejemplo n.º 1
0
        public oTabManager(TabControl tabController, ToolStrip toolStrip, oVisMain visMain, oVisPlayBar visPlayBar, Panel panelMain)
        {
            this.tabController = tabController;
            this.toolStrip     = toolStrip;
            this.visMain       = visMain;
            this.visPlayBar    = visPlayBar;
            this.panelMain     = panelMain;
            tabs      = new List <oTab>(0);
            activeTab = tabController.SelectedIndex;

            // Create the toolstrip
            mainToolStrip = new ToolStrip();
            panelMain.Controls.Add(this.mainToolStrip);

            // Let's create callbacks from the tab controller.
            tabController.SelectedIndexChanged += tabController_SelectedIndexChanged;
        }
Ejemplo n.º 2
0
        public oTabFunctionList(oTabManager parent, ToolStrip toolStrip, Panel panelMain, ToolStrip mainToolStrip, string tabTitle, oFunctionList functionList, oVisMain visMain, oVisPlayBar visPlayBar)
            : base(parent, toolStrip, panelMain, mainToolStrip, tabTitle)
        {
            // Initialize the controls we need
            InitializeComponents();

            // Set the data source for the control
            functionListControl.FunctionList = functionList;

            // Set the function list parent tab
            if (functionList != null)
            {
                functionList.parentControl = functionListControl;
            }
        }