public SuperTabItemColorTable() { _Default = new SuperTabColorStates(); _Default.ColorTableChanged += SctColorTableChanged; _Left = new SuperTabColorStates(); _Left.ColorTableChanged += SctColorTableChanged; _Bottom = new SuperTabColorStates(); _Bottom.ColorTableChanged += SctColorTableChanged; _Right = new SuperTabColorStates(); _Right.ColorTableChanged += SctColorTableChanged; }
private SuperTabItemStateColorTable GetStateColorTable( eTabState tabState, SuperTabColorStates cs) { switch (tabState) { case eTabState.MouseOver: return (cs.MouseOver); case eTabState.Selected: return (cs.Selected); case eTabState.SelectedMouseOver: return (cs.SelectedMouseOver); case eTabState.Disabled: return (cs.Disabled); default: return (cs.Normal); } }
public void ResetLeft() { Left = new SuperTabColorStates(); }
public void ResetDefault() { Default = new SuperTabColorStates(); }
public object Clone() { SuperTabColorStates sct = new SuperTabColorStates(); sct.Normal = (SuperTabItemStateColorTable)Normal.Clone(); sct.Selected = (SuperTabItemStateColorTable)Selected.Clone(); sct.MouseOver = (SuperTabItemStateColorTable)MouseOver.Clone(); sct.SelectedMouseOver = (SuperTabItemStateColorTable)SelectedMouseOver.Clone(); sct.Disabled = (SuperTabItemStateColorTable)Disabled.Clone(); return (sct); }
private void SetNewColorTable( ref SuperTabColorStates sct, SuperTabColorStates newSct) { if (sct != null) sct.ColorTableChanged -= SctColorTableChanged; sct = newSct; if (sct != null) sct.ColorTableChanged += SctColorTableChanged; OnColorTableChanged(); }
public void ResetRight() { Right = new SuperTabColorStates(); }
public void ResetBottom() { Bottom = new SuperTabColorStates(); }