private void fileExplorerTreeView_BeforeExpand(object sender, TreeViewCancelEventArgs e) { Form1 form = (Form1)ParentForm; fileExplorerTreeView.SelectedNode = e.Node; FileExplorerManager.LoadDirectory(form, e.Node, false); }
private void refreshToolStripButton_Click(object sender, EventArgs e) { Form1 form = (Form1)ParentForm; if (fileExplorerTreeView.SelectedNode != null) { FileExplorerManager.LoadDirectory(form, fileExplorerTreeView.SelectedNode, true); pathTextBox.Text = fileExplorerTreeView.SelectedNode.ToolTipText; pathTextBox.Select(pathTextBox.Text.Length, 0); } else { FileExplorerManager.LoadFileTree(form, true); } }
private void refreshToolStripMenuItem_Click(object sender, EventArgs e) { Form1 form = (Form1)ParentForm; FileExplorerManager.LoadDirectory(form, fileExplorerTreeView.SelectedNode, true); }