public PetriDish()

in GameOfLife/ViewModel/PetriDish.cs [13:32]


        public PetriDish(int width, int height, ITimer timer)
        {
            this.width = width;
            this.height = height;
            this.timer = timer;
            timer.Tick += UpdateCellsState;
            currentCells = new Cell[width, height];
            nextGenerationCells = new Cell[width, height];

            for (var i = 0; i < width; i++)
            {
                for (var j = 0; j < height; j++)
                {
                    currentCells[i, j] = new Cell(0, false);
                    nextGenerationCells[i, j] = new Cell(0, false);
                }
            }

            Clear();
        }