public override object Visit(DirectoryNode directoryNode, object data)
 {
     if (FileUtility.IsBaseDirectory(oldName, directoryNode.Directory)) {
         directoryNode.Directory = DirectoryName.Create(FileUtility.RenameBaseDirectory(directoryNode.Directory, oldName, newName));
         directoryNode.AcceptChildren(this, data);
     } else if (FileUtility.IsBaseDirectory(directoryNode.Directory, oldName)) {
         directoryNode.AcceptChildren(this, data);
     }
     return data;
 }
 public override object Visit(DirectoryNode directoryNode, object data)
 {
     if (FileUtility.IsBaseDirectory(oldName, directoryNode.Directory))
     {
         directoryNode.Directory = FileUtility.RenameBaseDirectory(directoryNode.Directory, oldName, newName);
         directoryNode.AcceptChildren(this, data);
     }
     else if (FileUtility.IsBaseDirectory(directoryNode.Directory, oldName))
     {
         directoryNode.AcceptChildren(this, data);
     }
     return(data);
 }
Ejemplo n.º 3
0
		public override object Visit(DirectoryNode directoryNode, object data)
		{
			if (FileUtility.IsBaseDirectory(fileName, directoryNode.Directory)) {
				ExtTreeNode parent = directoryNode.Parent as ExtTreeNode;
				directoryNode.Remove();
				if (parent != null) {
					parent.Refresh();
				}
			} else {
				if (FileUtility.IsBaseDirectory(directoryNode.Directory, fileName)) {
					directoryNode.AcceptChildren(this, data);
				}
			}
			return data;
		}
Ejemplo n.º 4
0
 public override object Visit(DirectoryNode directoryNode, object data)
 {
     if (FileUtility.IsBaseDirectory(fileName, directoryNode.Directory))
     {
         ExtTreeNode parent = directoryNode.Parent as ExtTreeNode;
         directoryNode.Remove();
         if (parent != null)
         {
             parent.Refresh();
         }
     }
     else
     {
         if (FileUtility.IsBaseDirectory(directoryNode.Directory, fileName))
         {
             directoryNode.AcceptChildren(this, data);
         }
     }
     return(data);
 }
Ejemplo n.º 5
0
 public virtual object Visit(DirectoryNode directoryNode, object data)
 {
     directoryNode.AcceptChildren(this, data);
     return(data);
 }
		public virtual object Visit(DirectoryNode directoryNode, object data)
		{
			directoryNode.AcceptChildren(this, data);
			return data;
		}