Esempio n. 1
0
 /// <summary>
 /// 载入摄像机配置表 并匹配ID
 /// </summary>
 /// <param name="xmlDocument"></param>
 private void Load(XmlDocument xmlDocument)
 {
     if (xmlDocument != null)
     {
         XmlNode Item = xmlDocument.SelectSingleNode("/GameSettings");
         gameSettingsModel = new GameSettingsXml();
         gameSettingsModel.LoadFormXMLNode(Item);
     }
 }
Esempio n. 2
0
 public void UnLoad()
 {
     if (gameSettingsModel != null)
     {
         gameSettingsModel.UnLoadXMLNode();
         gameSettingsModel = null;
     }
     xmlDocument = null;
     singleton   = null;
 }