private void CurrentPageChanged(cnTabControl sender, cnTabPage page) { if (SelectionService != null) { System.Collections.ArrayList s = new System.Collections.ArrayList(); s.Add(TabControl.TabPages[TabControl.SelectedIndex]); SelectionService.SetSelectedComponents(s); } }
public cnTabButton(cnTabControl Tab, TabButtonAction action) { buttonAction = action; selected = false; down = false; tab = Tab; bg = new SolidBrush(tab.BackColor); SetStyle(ControlStyles.DoubleBuffer, true); SetStyle(ControlStyles.AllPaintingInWmPaint, true); SetStyle(ControlStyles.UserPaint, true); SetStyle(ControlStyles.FixedHeight, true); SetStyle(ControlStyles.FixedWidth, true); this.Size = new Size(15, 15); this.Visible = false; this.TabStop = false; }
public cnTabPageCollection(cnTabControl t) { tabControl = t; }