Beispiel #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;
        }
Beispiel #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);
            }
        }
Beispiel #3
0
 public void ResetLeft()
 {
     Left = new SuperTabColorStates();
 }
Beispiel #4
0
 public void ResetDefault()
 {
     Default = new SuperTabColorStates();
 }
Beispiel #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);
        }
Beispiel #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();
        }
Beispiel #7
0
 public void ResetRight()
 {
     Right = new SuperTabColorStates();
 }
Beispiel #8
0
 public void ResetBottom()
 {
     Bottom = new SuperTabColorStates();
 }