public override object Visit(SolutionItemNode solutionItemNode, object data)
 {
     if (FileUtility.IsEqualFileName(oldName, solutionItemNode.FileName)) {
         solutionItemNode.Text = Path.GetFileName(newName);
     }
     solutionItemNode.AcceptChildren(this, data);
     return data;
 }
Esempio n. 2
0
		public override object Visit(SolutionItemNode solutionItemNode, object data)
		{
			if (FileUtility.IsBaseDirectory(fileName, solutionItemNode.FileName)) {
				solutionItemNode.Remove();
			} else {
				solutionItemNode.AcceptChildren(this, data);
			}
			return data;
		}
Esempio n. 3
0
 public static IDataObject CreateDataObject(SolutionItemNode node, bool performMove)
 {
     return(new DataObject(typeof(SolutionItemNode).ToString(),
                           new FileOperationClipboardObject(node.FileName, performMove)));
 }
Esempio n. 4
0
		public static IDataObject CreateDataObject(SolutionItemNode node, bool performMove)
		{
			return new DataObject(typeof(SolutionItemNode).ToString(),
			                      new FileOperationClipboardObject(node.FileName, performMove));
		}
 public virtual object Visit(SolutionItemNode solutionItemNode, object data)
 {
     solutionItemNode.AcceptChildren(this, data);
     return(data);
 }
		public virtual object Visit(SolutionItemNode solutionItemNode, object data)
		{
			solutionItemNode.AcceptChildren(this, data);
			return data;
		}