Example #1
0
 private void Display_Load(object sender, EventArgs e)
 {
     _gol = new GOL(Convert.ToInt32(this.nup_gridSize.Value), Convert.ToInt32(this.nup_cellSize.Value));
     this._gol.DeadGrid();
     this.pictureBox1.Image = _gol.GenerateBitmap();
     this.pictureBox1.Refresh();
 }
Example #2
0
 private void bt_Seed_Click(object sender, EventArgs e)
 {
     _gol = new GOL(Convert.ToInt32(this.nup_gridSize.Value), Convert.ToInt32(this.nup_cellSize.Value));
     _gol.RandomizeGrid();
     this.pictureBox1.Image = _gol.GenerateBitmap();
     this.pictureBox1.Refresh();
 }