public void ClearCells() { MyCell cell = MyCells[MyCells.Count - 1]; cell.Life = false; foreach (MyCell myCell in MyCells) { myCell.Life = false; } MyCells[MyCells.Count - 1] = cell; RefreshCells(); }
public MyCell(MyCell myCell) { Life = myCell.Life; Neighbors = myCell.Neighbors; }