Example #1
0
        private void setColors()
        {
            if (_colorStyle == XColorStyle.Blue)
            {
                _colors = new XBlue();
            }
            else if (_colorStyle == XColorStyle.Red)
            {
                _colors = new XRed();
            }

            this.BackColor = _colors.getBackgroundColor();
            this.ForeColor = _colors.getForeColor();
        }
Example #2
0
        private void setStyle()
        {
            if (_colorStyle == XColorStyle.Blue)
            {
                _colors = new XBlue();
            }
            else if (_colorStyle == XColorStyle.Red)
            {
                _colors = new XRed();
            }
//             this.TabBackgroundColor = _colors.getBackgroundColor();
//             this.SelectedTabBackroundColor = _colors.getTabBGColor();
//             this.BackgroundColor = _colors.getBackgroundColor();
//             this.TabForeColor = _colors.getForeColor();
        }
Example #3
0
        public XButton()
        {
            _colors = new XBlue();
            SetStyle(ControlStyles.AllPaintingInWmPaint
                     | ControlStyles.UserPaint
                     | ControlStyles.OptimizedDoubleBuffer
                     | ControlStyles.ResizeRedraw, true);

            this.FlatStyle = FlatStyle.Flat;
            this.FlatAppearance.BorderSize = 1;
            setColors();
            this.Font = new System.Drawing.Font("Segoe UI", 8F);

            this.Anchor = AnchorStyles.Top | AnchorStyles.Right;
        }
Example #4
0
        private void setColors()
        {
            if (_colorStyle == XColorStyle.Blue)
            {
                _colors = new XBlue();
            }
            else if (_colorStyle == XColorStyle.Red)
            {
                _colors = new XRed();
            }

            this.BackColor = _colors.getBackgroundColor();
            this.ForeColor = _colors.getForeColor();
            this.FlatAppearance.BorderColor        = _colors.getBorderColor();
            this.FlatAppearance.MouseOverBackColor = _colors.getHoverColor();
            this.FlatAppearance.MouseDownBackColor = _colors.getBorderColor();
        }