Esempio n. 1
0
 protected override bool DoExecute()
 {
     _oldCells = Canvas.Cells.Where(c => c.Brush.Shape != ' ').ToArray();
     Unnotate(_oldCells);
     _newCells = GetAnnotations();
     Canvas.Annotate(_newCells);
     return(!_oldCells.SequenceEqual(_newCells));
 }
Esempio n. 2
0
 private bool Reannotate(Cell[] from, Cell[] to)
 {
     if (from.SequenceEqual(to))
     {
         return(false);
     }
     Unnotate(from);
     Canvas.Annotate(to);
     return(true);
 }
Esempio n. 3
0
 private void Unnotate(IEnumerable <Cell> cells)
 {
     Canvas.Annotate(cells.Select(c => c.Clone(' ')).ToArray());
 }