Esempio n. 1
0
 void treeView_archiveOverview_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e)
 {
     TreeNode selectedNode = treeView_archiveOverview.SelectedNode;
     if (e.Node.IsSelected)
     {
         selectedNode = e.Node;
     }
     if (selectedNode != null)
     {
         currentNode = folderEngine.findNodeByPathString(selectedNode.FullPath);
         updateWindow();
     }
 }
Esempio n. 2
0
 //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
     }
 }