private void newSearchToolStripMenuItem_Click(object sender, EventArgs e) { this.StopBackgroundThreads(); this.UpdateStatusBar(); this.treeView.Nodes.Clear(); this.TotalSize = 0; SelectDirectories selectDirectories = new SelectDirectories(); DialogResult res = selectDirectories.ShowDialog(this); if (DialogResult.OK == res) { PopulateTree(selectDirectories.Directories); } }
private void MainForm_Shown(object sender, EventArgs e) { this.treeView.TreeViewNodeSorter = new TreeNodeCompare(); this.treeView.BeginUpdate(); this.SetTreeViewWindowPos(); this.SetColumnPos(); this.treeView.EndUpdate(); this.TotalSize = 0; SelectDirectories selectDirectories = new SelectDirectories(); DialogResult res = selectDirectories.ShowDialog(this); if (DialogResult.OK == res) { PopulateTree(selectDirectories.Directories); } }