}
}
下拉列表框关闭时发生事件代码
private void comboBox4_SelectionChangeCommitted(object sender, EventArgs e)
{
string lc_text = comboBox4.Text.Trim();
string lc_jsbmy = lc_text.Substring(0, 4).Trim();
textBox6.Text = lc_text.Substring(0, 4).Trim();
textBox7.Text = lc_text.Substring(5, lc_text.Length - 5).Trim();
XElement jsFile = XElement.Load(@"ftp://100.100.0.1/yhcd1/XMLJssj.xml");
string lc_cdbms = string.Empty;
foreach (var p in jsFile.Elements("jsbm"))
{
if (lc_jsbmy == p.Value.ToString())
{
lc_cdbms = (string)p.Attribute("cdbm");
break;
}
}
ln_cdbm1 = lc_cdbms.Split('*');
ln_cds = ln_cdbm1.Length;
if (lc_cdbms != string.Empty)
{
qx_check(treeView1.Nodes[0]);
ln_ljs = 0;
xs_tree(treeView1.Nodes[0]); 调用xs_tree()方法显示树形控件节点复选框
treeView1.Refresh();
}
else
{
qx_check(treeView1.Nodes[0]);
treeView1.Refresh();
}
}
单击按钮事件中有关角色授权并存入XML文件代码:
private void button4_Click(object sender, EventArgs e)
{
string lc_jsbm = textBox6.Text; ln_ljs = 0;
|