Ejemplo n.º 1
0
 private void OnCellModelChanges(CellChanges changes)
 {
     foreach (var change in changes.Changes)
     {
         _cells[change.CellX + BoardSizeX * change.CellY].Color = change.Color ?? Colors.DarkGray;
     }
 }
Ejemplo n.º 2
0
        public void RemoveChange(UpdateEntry args)
        {
            UpdateEntry change = FindChange(args);

            if (change != null)
            {
                CellChanges.Remove(change);
            }
        }
Ejemplo n.º 3
0
 public void Add(UpdateEntry args)
 {
     RemoveChange(args);
     CellChanges.Add(args);
 }
Ejemplo n.º 4
0
 public void Clear()
 {
     CellChanges.Clear();
 }