public ArchivedFileNode(FileSystemNode parent, HeaderData info)
     : base(parent)
 {
     this.Name = System.IO.Path.GetFileName(info.FileName);
     this.Path = System.IO.Path.Combine(info.ArcName, info.FileName);
     this.InternalPath = info.FileName;
     this.Size = info.UnpSize;
     this.Attributes = info.FileAttr;            
 }
 public ArchivedDirectoryNode(FileSystemNode parent, HeaderData info, HeaderData[] list)
     : base(parent)
 {
     this.Name = System.IO.Path.GetFileName(info.FileName.TrimEnd('\\', '/'));
     this.Path = System.IO.Path.Combine(info.ArcName, info.FileName.TrimEnd('\\', '/'));
     this.InternalPath = info.FileName.TrimEnd('\\', '/');
     this.Size = info.UnpSize;
     this.list = list;
 }
        protected override void OnItemActivate(EventArgs e)
        {
            var item = items[this.SelectedIndices[0]];

            if (item != null)
            {
                FileSystemNode node = (FileSystemNode)item.Tag;

                if (node.AllowOpen)
                {
                    this.SelectedNode = node;
                }
                else if (node is IExecutive)
                {
                    ((IExecutive)node).Activate(contextMenu);
                }

            }

            base.OnItemActivate(e);
        }
 public Shell2FileNode(FileSystemNode parent, Microsoft.WindowsAPICodePack.Shell.ShellFile info)
     : base(parent)
 {
     this.ParentNode = parent;
     this.info = info;
 }
 protected FileSystemNode(FileSystemNode parent)
 {
     this.ParentNode = parent;
 }
 public BZip2ArchiveNode(FileSystemNode parent, FileInfo file)
     : base(parent, file)
 {
 }
 public Shell2DirectoryNode(FileSystemNode parent, Microsoft.WindowsAPICodePack.Shell.ShellFolder info)
     : base(parent)
 {
     this.info = info;
 }
 public DirectoryNode(FileSystemNode parent, DirectoryInfo info)
     : base(parent)
 {
     this.info = info;
     this.Attributes = info.Attributes;
 }
        private void LoadNode(FileSystemNode node)
        {
            if (node.ChildNodes != null && node.ChildNodes.Length > 0)
            {
                this.BeginUpdate();
                largeImageList.Images.Clear();
                items.Clear();

                int count = node.ChildNodes.Length;
                try
                {
                    this.VirtualListSize = count;
                }
                catch (NullReferenceException)
                {
                }
                this.VirtualMode = node.ChildNodes.Length > 0;

                this.SelectedIndices.Clear();
                this.SelectedIndices.Add(0);
                this.EndUpdate();

                SetVScroll((int)ScrollBarMessage.Top);
                SetHScroll((int)ScrollBarMessage.Left);
            }
        }
 protected virtual void OnNodeSelected(FileSystemNode node)
 {
     if (NodeSelected != null)
     {
         NodeSelected(this, node);
     }
 }
 public UpLink(FileSystemNode parent)
     : base(parent)
 {
     this.AllowOpen = this.ParentNode.AllowOpen;
     this.Name = "..";
 }
 public FileNode(FileSystemNode parent, FileInfo info)
     : base(parent)
 {
     this.info = info;
     this.Attributes = info.Attributes;
 }
 public ArchiveUpLink(FileSystemNode parent)
     : base(parent)
 {
 }
 public ShellDirectoryNode(FileSystemNode parent, Shell.ShellFolder info)
     : base(parent)
 {
     this.info = info;
 }
        protected override void OnNodeSelected(FileSystemNode node)
        {
            base.OnNodeSelected(node);

            //MessageDispatcher.Dispatcher.Invoke(new DirectorySelectedAttribute(), new DirectorySelectedArgs(node.Path));
        }
 public ShellFileNode(FileSystemNode parent, Shell.ShellFile info)
     : base(parent)
 {
     this.ParentNode = parent;
     this.info = info;
 }