|
|
@@ -64,16 +64,18 @@ namespace OTSDataType
|
|
|
if (ss == "EN")
|
|
|
{
|
|
|
// xml.Load(".\\Resources\\XMLData\\ResourceForSourceGrid-EN.xml");//载入xml文件
|
|
|
- xml.Load(".\\Resources\\XMLData\\ResourceForSTDManage-EN.xml");
|
|
|
+ xml.Load(".\\Resources\\Resources\\XMLData\\ResourceForCpp\\ResourceForSTDManage-EN.xml");
|
|
|
}
|
|
|
else if (ss == "ZH")
|
|
|
{
|
|
|
// xml.Load(".\\Resources\\XMLData\\ResourceForSourceGrid-ZH.xml");//载入xml文件
|
|
|
- xml.Load(".\\Resources\\XMLData\\ResourceForSTDManage-ZH.xml");
|
|
|
+ // xml.Load(".\\Resources\\XMLData\\LanguageDefine.xml");
|
|
|
+ xml.Load(".\\Resources\\XMLData\\ResourceForCpp-ZH.xml");
|
|
|
}
|
|
|
- root = xml.SelectSingleNode("XMLData");
|
|
|
- root2 = root.SelectSingleNode("collection");
|
|
|
- XmlNodeList childlist = root2.ChildNodes;
|
|
|
+ XmlDocument xml1 = new XmlDocument();
|
|
|
+ XmlNode root3 = xml1.SelectSingleNode("collection");
|
|
|
+ XmlNode root4 = root3.SelectSingleNode("member");
|
|
|
+ XmlNodeList childlist = root2.ChildNodes;
|
|
|
for (int i = 0; i < childlist.Count; i++)
|
|
|
{
|
|
|
int colkey = -1;
|
|
|
@@ -116,7 +118,7 @@ namespace OTSDataType
|
|
|
}
|
|
|
//try
|
|
|
//{
|
|
|
- rg.mapRes[key] = sr;
|
|
|
+ rg.mapRes[key] = sr;
|
|
|
//}
|
|
|
//catch (System.Exception ex)
|
|
|
//{
|