for (int i = 1; i <= 30; i++)
{
nextno[i] = nextno[i - 1].NextNode;
lc_tag[i] = nextno[i - 1].Tag.ToString();
strcdbm[i] = nextno[i - 1].Tag.ToString();
if (nextno[i - 1].NextNode == null)
{
break;
}
}
for (int i = 0; i <= 30; i++)
{
nextno[i].Tag = lc_tag[i]; //依次替换下一个节点Tag值
if (nextno[i].NextNode == null)
{
break;
}
}
}
try
{
for (int i = 1; i <= intcount - intindex - 1; i++)
{
foreach (var cl in xmlFile.Elements("cdbm"))
{
if (cl.Value.ToString() == strcdbm[i])
{
//为菜单名称,执行命令,树形编码数组赋值。
strcdmc[i] = (string)cl.Attribute("cdmc");
strzxml[i] = (string)cl.Attribute("zxml");
strsxbm[i] = (string)cl.Attribute("sxbm");
break;
}
}
}
|