コード例 #1
0
        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;
            }
        }
コード例 #2
0
		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;
			}
		}