DataGridViewRowCollection dl1_rows1 = DL1dGV1.Rows;
XmlDocument XmlDoc1 = new XmlDocument();
XmlDoc1.Load(@"C:\xml_config\MKD_DL11_TestItem.xml");
XmlNodeList Nodelist = XmlDoc1.GetElementsByTagName("DisplayName");
IEnumerator ienum1 = Nodelist.GetEnumerator();
XmlNodeList Enablelist1 = XmlDoc1.GetElementsByTagName("Enable");
IEnumerator ienum_enable1 = Enablelist1.GetEnumerator();
while (ienum1.MoveNext())
{
ienum_enable1.MoveNext();
XmlNode value1 = (XmlNode)ienum_enable1.Current;
if (value1.InnerText == "1")
{
XmlNode title1 = (XmlNode)ienum1.Current;
dl1_rows1.Add(new Object[] { title1.InnerText, dl11_Get_Config_File_Version, dl11_Get_Config_File_Version_time });
}
}
沒有留言:
張貼留言