///
/// 展开节点后发生
///
///
///
private void treeView1_AfterExpand(object sender, TreeViewEventArgs e)
{
treeView1.SelectedNode = e.Node;
}
///
/// 折叠节点后发生
///
///
///
private void treeView1_AfterCollapse(object sender, TreeViewEventArgs e)
{
treeView1.SelectedNode = e.Node;
}