Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
0
        private void ResizeControl(object sender, EventArgs e)
        {
            Couple nouvelleTaille = new Couple(pictureBox.Location.X, (Height - pictureBox.Height) / 2);

            pictureBox.Location = nouvelleTaille.ToPoint();
        }