コード例 #1
0
        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();
        }
コード例 #2
0
 public MyCell(MyCell myCell)
 {
     Life      = myCell.Life;
     Neighbors = myCell.Neighbors;
 }