示例#1
0
        private void Grid_Load(object sender, EventArgs e)
        {
            game.CreateUniverse(this.ClientRectangle.Width / Consts.CellSize, this.ClientRectangle.Height / Consts.CellSize);

            this.BackColor = Consts.Colors.SetupForm;
            this.Text      = "Game of Life - R:Fill Random, S:Start: E:End, MouseClick:Set Alive";


            aTimer          = new System.Timers.Timer(1000 / Consts.FPS);
            aTimer.Elapsed += aTimer_Elapsed;
        }