Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        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);
            }
        }
Ejemplo n.º 3
0
 public void ResetLeft()
 {
     Left = new SuperTabColorStates();
 }
Ejemplo n.º 4
0
 public void ResetDefault()
 {
     Default = new SuperTabColorStates();
 }
Ejemplo n.º 5
0
        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);
        }
Ejemplo n.º 6
0
        private void SetNewColorTable(
            ref SuperTabColorStates sct, SuperTabColorStates newSct)
        {
            if (sct != null)
                sct.ColorTableChanged -= SctColorTableChanged;

            sct = newSct;

            if (sct != null)
                sct.ColorTableChanged += SctColorTableChanged;

            OnColorTableChanged();
        }
Ejemplo n.º 7
0
 public void ResetRight()
 {
     Right = new SuperTabColorStates();
 }
Ejemplo n.º 8
0
 public void ResetBottom()
 {
     Bottom = new SuperTabColorStates();
 }