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(); }
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(); }
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; }
public MyTabNav(MyTabControl tabControl) { this.TabControl = tabControl ?? throw new ArgumentNullException(); InitializeComponent(); }