コード例 #1
0
 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();
 }
コード例 #2
0
 public Form1()
 {
     InitializeComponent();
     nbCell  = 20;
     _grille = new Grille(Math.Min(pictureBox1.Size.Width, pictureBox1.Size.Height) / nbCell, nbCell);
 }