Пример #1
0
 public MyTabPage(MyTabControl tabControl, string header, Control content)
 {
     this.TabControl = tabControl ?? throw new ArgumentNullException();
     this.Header     = header ?? throw new ArgumentNullException();
     this.Content    = content ?? throw new ArgumentNullException();
     InitializeComponent();
 }
Пример #2
0
 public MyTabNavItem(MyTabControl tabControl, MyTabPage tabPage)
 {
     this.TabControl = tabControl ?? throw new ArgumentNullException();
     this.TabPage    = tabPage ?? throw new ArgumentNullException();
     InitializeComponent();
     this.Header = TabPage.Header;
     this.label1.Refresh();
     this.flowLayoutPanel.Refresh();
 }
Пример #3
0
        private void Init()
        {
            MyTabControl         = new MyTabControl.MyTabControl();
            MyTabControl.Dock    = DockStyle.Fill;
            MyTabControl.Enabled = true;
            MyTabControl.Name    = "MyTabControl";
            this.tableLayoutPanel1.SuspendLayout();
            this.tableLayoutPanel1.Controls.Add(MyTabControl, 0, 0);
            this.tableLayoutPanel1.ResumeLayout(false);
            MyTabControl.Show();

            MyTabControl.Click      += MyTabControl_Click;
            MyTabControl.MouseClick += MyTabControl_MouseClick;
        }
Пример #4
0
 public MyTabNav(MyTabControl tabControl)
 {
     this.TabControl = tabControl ?? throw new ArgumentNullException();
     InitializeComponent();
 }