//todo: use new refresh method
 void refreshEngine()
 {
     if (currentFolder != null)
     {
         folderEngine = new DH_FolderEngine(currentFolder, true);
         Properties.Settings.Default.LastUsedFolderPath = currentFolder;
         Properties.Settings.Default.Save();
     }
     if (folderEngine != null)
     {
         treeView_archiveOverview.Nodes.Clear();
         currentNode = null;
         treeView_archiveOverview.Nodes.Add(folderEngine.rootNode.thisTreeNode); //includes root node in the treeview, allows you to have multiple root nodes.
         updateWindow(); //make sure there's no stale data left
     }
 }
            public DH_Node(DirectoryInfo _path, string _relativePath, DH_FolderEngine _folderEngine, DH_Node _parent, bool recurse)
            {
                Name = _path.Name;
                FileSystemPath = _path;
                Path = _relativePath;
                Children = new List<DH_Node>();
                Parent = _parent; // this is null if we're the rootnode.
                FolderEngine = _folderEngine;
                thisTreeNode = new System.Windows.Forms.TreeNode(Name);

                if (recurse)
                {
                    generateChildnodes(recurse);
                }
                refreshAttachments();
            }