Beispiel #1
0
 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();
 }
Beispiel #2
0
        public static Folder Load(string path)
        {
            DirectoryInfo t = new DirectoryInfo(path);

            return(Folder.Load(t));
        }