Exemplo n.º 1
0
 public XComboBox()
 {
     this.DrawMode  = DrawMode.OwnerDrawFixed;
     this.DrawItem += new DrawItemEventHandler(DoDrawItem);
     this.Anchor    = AnchorStyles.Top | AnchorStyles.Right;
     this.BackColor = _colors.getBackgroundColor();
     this.ForeColor = _colors.getForeColor();
     this.Font      = new System.Drawing.Font("Segoe UI", 8.25F);
 }
Exemplo n.º 2
0
 public XListBox()
 {
     this.Anchor            = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right;
     this.BackColor         = Color.FromArgb(37, 37, 38);
     this.BorderStyle       = BorderStyle.None;
     this.ForeColor         = _colors.getForeColor();
     this.FormattingEnabled = true;
     this.ItemHeight        = 14;
     base.DrawItem         += new DrawItemEventHandler(this.DoDrawItem);
     this.DrawMode          = DrawMode.OwnerDrawFixed;
 }
Exemplo n.º 3
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();
        }
Exemplo n.º 4
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();
 }
Exemplo n.º 5
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();
        }