//方法////////////////////// public Empire() { EmpireData = new Graph(); IfIOStrategy reader = new XMLStrategy(); //读入数据库 EmpireData = reader.ReadFile("0.xml"); intRound = 1; //所有节点初始化 Initialize(); }
private static List <string> GetAssemblyList() { ErrorCode err; IIoStrategy xmlReader = new XMLStrategy(Properties.Settings.Default.GraphDBConfigPath); XmlElement root = xmlReader.ReadFile(out err); List <string> assemList = new List <string>(); XmlElement setting = root.GetNode("SerialAssemblyList"); foreach (XmlNode curItem in setting.ChildNodes) { assemList.Add(curItem.InnerText); } return(assemList); }
Graph Read() { IfIOStrategy reader = new XMLStrategy(); return(reader.ReadFile("0.xml")); }