Exemplo n.º 1
0
 protected override void UndoCore()
 {
     collection.Remove(index, newRange.Length);
     collection.SetRange(collection.Length - newRange.Length, savedRange);
     savedRange = null;
 }
Exemplo n.º 2
0
 protected override void RedoCore()
 {
     savedRange = collection.GetRange(index, index + count - 1);
     collection.Remove(index, count);
 }
Exemplo n.º 3
0
 protected override void UndoCore()
 {
     collection.Remove(index, count);
     collection.SetRange(collection.Length - count, savedRange);
     savedRange = null;
 }