Пример #1
0
 //updateAliveNeighboursNum
 public void updateAliveNeighboursNum(ILifeCell cell)
 {
     if (cell.IsAlive)
     {
         this.NeighborsAliveNum++;
     }
     else
     {
         this.neighborsAliveNum--;
     }
 }
Пример #2
0
        //
        public void PaintOnChangeDelegate(ILifeCell cell)
        {
            Graphics graphics = CreateGraphics();

            PaintCell(graphics, cell.X, cell.Y);
        }