Пример #1
0
        public void SizesAndPositions(DGVTabPaneControl _dgvTabs)
        {
            for (var i = 0; i < _dgvTabs.Pages.Count; ++i)
            {
                Assert.AreEqual($"tabPage{i + 1}", _dgvTabs.Pages[i].Name);
                Assert.AreEqual($"dgv_{i+1}_{1}", _dgvTabs[i, 0].Name);



                if (_dgvTabs.Pages[0].Controls.OfType <DataGridView>().Count() > 1)
                {
                }
            }
        }
Пример #2
0
        private void InitializeTabControl(uint tabsNum, uint dgvsNum, float BigDgvSizeCoeff)
        {
            SuspendLayout();
            TabsPane = new DGVTabPaneControl(tabsNum, dgvsNum, BigDgvSizeCoeff);

            TabsPane.Anchor = ((AnchorStyles)(((AnchorStyles.Bottom | AnchorStyles.Left)
                                               | AnchorStyles.Right)));
            TabsPane.Font     = new Font("Microsoft Sans Serif", 9.75F, FontStyle.Regular, GraphicsUnit.Point);
            TabsPane.Margin   = new Padding(4, 3, 4, 3);
            TabsPane.Name     = "TabsPane";
            TabsPane.TabIndex = 1;
            TabsPane.Dock     = DockStyle.Fill;
            BottomLayoutPanel.Controls.Add(TabsPane, 0, 0);
            ResumeLayout(false);
        }