Пример #1
0
        private void ShowTabExtension(ExtensionTab extension)
        {
            var page = new TabPage(extension.Caption);

            page.Size = extension.Size;
            page.Controls.Add(extension);
            tabControl.TabPages.Add(page);
            ResizeTabControl(page.Width, page.Height);
        }
Пример #2
0
 private void ShowTabExtension(ExtensionTab extension)
 {
     var page = new TabPage(extension.Caption);
     page.Size = extension.Size;
     page.Controls.Add(extension);
     tabControl.TabPages.Add(page);
     ResizeTabControl(page.Width, page.Height);
 }