{
ln_fgly = 1;
}
ln_cdbm2[ln_ljs] = treeNode.Tag.ToString().Trim();
ln_ljs = ln_ljs + 1;
}
}
//取消所有选中复选框节点方法
private void qx_check(TreeNode treeNode)
{
foreach (TreeNode tn in treeNode.Nodes)
{
tn.Checked = false;
qx_check(tn);
}
}
//根据数组ln_cdbm1显示选中复选框节点方法
private void xs_tree(TreeNode treeNode)
{
foreach (TreeNode tn in treeNode.Nodes)
{
if (ln_ljs == ln_cds)
{
break;
}
xs_check(tn);
xs_tree(tn);
}
}
private void xs_check(TreeNode treeNode)
{
//MessageBox.Show(treeNode.Tag.ToString()+" "+ln_cdbm1[ln_ljs]);
if (treeNode.Tag.ToString().Trim() == ln_cdbm1[ln_ljs])
{
treeNode.Checked = true;
ln_ljs = ln_ljs + 1;
|