private void startButton_Click(object sender, EventArgs e) { startButton.Enabled = false; //Design Initial Board Graphics drawBoard = this.CreateGraphics(); BoardDesign.DrawSectionOfBoard(Color.AntiqueWhite, drawBoard); //Populate Initial Cells Graphics liveCellInitial = this.CreateGraphics(); LiveCells.CreateInitialState(liveCellInitial); }
private void cycleButton_Click(object sender, EventArgs e) { Graphics populateCells = this.CreateGraphics(); LiveCells.CycleState(populateCells); }