private void EhRenameStringTemplateChanged() { string template = _view.RenameStringTemplate; var walker = new MultiRenameTreeWalker(template, _doc); var result = walker.VisitTree(); for (int i = 0; i < _itemsShown.Count; ++i) { var item = (MyNode)_itemsShown[i]; int originalIndex = (int)item.Tag; string newName = result.GetContent(originalIndex, i); item.NewName = newName; } }
private void EhRenameStringTemplateChanged() { string template = _view.RenameStringTemplate; MultiRenameTreeWalker walker = new MultiRenameTreeWalker(template, _doc); var result = walker.VisitTree(); for (int i = 0; i < _itemsShown.Count; ++i) { var item = (MyNode)_itemsShown[i]; int originalIndex = (int)item.Tag; string newName = result.GetContent(originalIndex, i); item.NewName = newName; } }