Пример #1
0
 internal void Add(Cell[,] cell)
 {
     Cell[,] cellOfCurrentField = new Cell[cell.GetLength(0), cell.GetLength(1)];
     for (int i = 0; i < cellOfCurrentField.GetLength(0); i++)
     {
         for (int j = 0; j < cellOfCurrentField.GetLength(1); j++)
         {
             cellOfCurrentField[i, j] = new Cell(cell[i, j].GetIsAlive());
         }
     }
     memento.Add(cellOfCurrentField);
 }