TreeNode node=bomTree.GetNodeFromIndex(bomTree.SelectedNodeIndex);
node.Expanded=false; //关闭
node.Expanded=true; //展开