Example #1
0
 public void RenameItem(ITreeItem treeItem, string newName)
 {
     _memento.Record(@"Rename Item ('{0}' -> '{1}')".FormatWith(treeItem.Name, newName),
                     () => treeItem.RenameTo(newName));
 }
Example #2
0
 public void RenameItem( ITreeItem treeItem, string newName )
 {
     _memento.Record(@"Rename Item ('{0}' -> '{1}')".FormatWith(treeItem.Name, newName),
                     () => treeItem.RenameTo(newName));
 }