Пример #1
0
        public FlatButton()
        {
            InitializeComponent();

            BackColor = Color.FromArgb(33, 150, 245);
            FlatAppearance.BorderSize = 0;
            FlatStyle = FlatStyle.Flat;
            Font      = new Font("Yu Gothic UI", 12F, FontStyle.Regular, GraphicsUnit.Point, 0);
            ForeColor = Color.White;
            UseVisualStyleBackColor = false;
            Size = _size.ToSize();
        }
Пример #2
0
        private FlatButton CreerBouton(Couple position, string texte)
        {
            FlatButton bouton = new FlatButton
            {
                Location = position.ToPoint(),
                Size     = _tailleBouton.ToSize(),
                Text     = texte
            };

            Controls.Add(bouton);

            return(bouton);
        }