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