Пример #1
0
        private static Color GetForeColor(State.Up stateId)
        {
            switch (stateId)
            {
            case State.Up.UPS_PRESSED:
                return(SystemColors.Control);

            case State.Up.UPS_DISABLED:
                return(SystemColors.ControlDark);

            // case States.Up.UPS_NORMAL:
            // case States.Up.UPS_HOT:
            default:
                return(SystemColors.ControlDarkDark);
            }
        }
Пример #2
0
        private static Brush GetBackBrush(State.Up stateId)
        {
            switch (stateId)
            {
            case State.Up.UPS_HOT:
                return(SystemBrushes.ControlDark);

            case State.Up.UPS_PRESSED:
                return(SystemBrushes.ControlDarkDark);

            // case States.Up.UPS_NORMAL:
            // case States.Up.UPS_DISABLED:
            default:
                return(SystemBrushes.Control);
            }
        }