private FlatButton CreerBouton(Couple position, string texte) { FlatButton bouton = new FlatButton { Location = position.ToPoint(), Size = _tailleBouton.ToSize(), Text = texte }; Controls.Add(bouton); return(bouton); }
private void ResizeControl(object sender, EventArgs e) { Couple nouvelleTaille = new Couple(pictureBox.Location.X, (Height - pictureBox.Height) / 2); pictureBox.Location = nouvelleTaille.ToPoint(); }