private void _openFolder() { if (_children == null) { _currentFolder = Folder.Load(_currentPath); } else { try { _currentFolder = _children[_currentPath]; } catch (KeyNotFoundException) { //MessageBox.Show("Access denied!"); } } if (_children != null) { _children.Clear(); } ThreadPool.QueueUserWorkItem(_loadChildren, _currentPath); _show(); }
public static Folder Load(string path) { DirectoryInfo t = new DirectoryInfo(path); return(Folder.Load(t)); }