Exemple #1
0
        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);
        }
Exemple #2
0
        private void cycleButton_Click(object sender, EventArgs e)
        {
            Graphics populateCells = this.CreateGraphics();

            LiveCells.CycleState(populateCells);
        }