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(); }
private FlatButton CreerBouton(Couple position, string texte) { FlatButton bouton = new FlatButton { Location = position.ToPoint(), Size = _tailleBouton.ToSize(), Text = texte }; Controls.Add(bouton); return(bouton); }