}
//添加三级菜单项
for (int i = 0; i <= x3 - 1; i++)
{
lc_cdbm1 = cdbm3[i].Substring(0, 1);
lc_cdbm2 = cdbm3[i].Substring(1, 1);
lc_cdbm3 = cdbm3[i].Substring(2, 1);
oper.Test(lc_cdbm3, out ln_test);
if (ln_test == 1)
{
ln_zim = oper.myViews.Find(lc_cdbm3);
y3 = int.Parse(oper.myViews[ln_zim]["xuhao"].ToString());
}
else
{
y3 = int.Parse(cdbm3[i].Substring(2, 1));
}
for (int s = 0; s <= x2 - 1; s++)
{
if (lc_cdbm1 == cdbm2[s].Substring(0, 1) && lc_cdbm2 ==
cdbm2[s].Substring(1, 1))
{
if (cdbj3[i] == 0)
{
cdmc3[i].Visible = false;
cdmc3[i].Enabled = false;
}
cdmc2[s].MenuItems.Add(y3, cdmc3[i]); cdmc3[i].Click += new EventHandler(this.menuItem1_Click);
|