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