private void x50ToolStripMenuItem_Click(object sender, EventArgs e) { nbCell = 50; _grille = new Grille(Math.Min(pictureBox1.Size.Width, pictureBox1.Size.Height) / nbCell, nbCell, _grille.LesElements); pictureBox1.Invalidate(); }
public Form1() { InitializeComponent(); nbCell = 20; _grille = new Grille(Math.Min(pictureBox1.Size.Width, pictureBox1.Size.Height) / nbCell, nbCell); }