Bubbles3/Models/BblLibraryNode.cs
/// <summary>
/// Build the pathstack required to run the FindChild method
/// </summary>
Build the pathstack required to run the FindChild method
Build the pathstack required to run the FindChild method
protected static Stack<FileSystemInfoEx> BuildPathStack(FileSystemInfoEx path, BblLibraryNode root)
        {
            Stack<FileSystemInfoEx> pathstack = new Stack<FileSystemInfoEx>();
            if (path.FullName == root.Path)
            {
                pathstack.Push(path);
                return pathstack;
            }
            while (path != null)
            {
                pathstack.Push(path);
                try { path = path.Parent; }
                catch { return null; }
                if (path.FullName == root.Path) return pathstack;
                else if (path == null) return null;
            }
            return null;
        }
protected static Stack < FileSystemInfoEx > BuildPathStack ( FileSystemInfoEx path , BblLibraryNode root ) { Stack < FileSystemInfoEx > pathstack = new Stack < FileSystemInfoEx > ( ) ; if ( path . FullName == root . Path ) { pathstack . Push ( path ) ; return pathstack ; } while ( path != null ) { pathstack . Push ( path ) ; try { path = path . Parent ; } catch { return null ; } if ( path . FullName == root . Path ) return pathstack ; else if ( path == null ) return null ; } return null ; }
Build the pathstack required to run the FindChild method
Build the pathstack required to run the FindChild method
path
FileSystemInfoEx
root
BblLibraryNode