private void loadDir(string path, Coaleser Form2) { try { DirectoryInfo dir = new DirectoryInfo(path); TreeNode node = Form2.c_tree_FileView.Nodes.Add(dir.Name); node.Tag = dir.FullName; node.StateImageIndex = 0; loadFiles(path, node); loadSubDir(path, node); } catch (Exception ex) { } }
//FOR COALESER private void coalescerToolStripMenuItem_Click(object sender, EventArgs e) { Coaleser Form2 = new Coaleser(); //Check if a CDT is loaded if (tabControl1.TabPages.Count < 1) { return; } //Get the current CDT Tab string current_tab = tabControl1.SelectedTab.Name; foreach (NewTab tab in tabs) { if (current_tab.Equals(tab.tab_name)) { extract_path = tab.extract_path; } } loadDir(extract_path, Form2); Form2.Show(); }