示例#1
0
        static private void CellCreator(Graphics liveCellInitial, int cellKey, int x, int y)
        {
            PopulateCell(liveCellInitial, cellKey, x, y);

            if (cellTable[cellKey] == 1)
            {
                BoardDesign.DrawSection(Color.Green, liveCellInitial, x, y);
            }
        }
示例#2
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);
        }
示例#3
0
 static public void PopulateCell(Graphics liveZone, int cellKey, int x, int y)
 {
     cellTable[cellKey] = 1;
     BoardDesign.DrawSection(Color.Green, liveZone, x, y);
 }
示例#4
0
        static private void CellKiller(Graphics killZone, int cellKey, int x, int y)
        {
            cellTable[cellKey] = 0;

            BoardDesign.DrawSection(Color.Red, killZone, x, y);
        }