Esempio n. 1
0
        protected override void OnFetchCompleted(Tree tree)
        {
            if (IsDisposed || (DirectoryTreeListBox.IsDisposed && DirectoryContentListBox.IsDisposed))
            {
                return;
            }

            DirectoryContentListBox.ProgressMonitor.Report(OperationProgress.Completed);
            DirectoryTreeListBox.SetTree(tree.Root, TreeListBoxMode.ShowDirectoryTree);
            DirectoryContentListBox.SetTree(tree.Root, TreeListBoxMode.ShowDirectoryContent);
        }
Esempio n. 2
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (!DirectoryTreeListBox.IsDisposed)
         {
             DirectoryTreeListBox.Clear();
         }
         if (!DirectoryContentListBox.IsDisposed)
         {
             DirectoryContentListBox.Clear();
         }
     }
     base.Dispose(disposing);
 }