// GET: DataInit public void SaveInitInfoXml(bool containCAD = true) { Log.InfoStart(LogTags.DbInit, "SaveInitInfoXml"); var root = _bll.GetAreaTree(false, null, containCAD); InitInfo initInfo = new InitInfo(); initInfo.TopoInfo = new TopoInfo(root, containCAD); string initFile = AppDomain.CurrentDomain.BaseDirectory + "Data\\InitTopo_Save.xml"; XmlSerializeHelper.Save(initInfo, initFile, Encoding.UTF8); Log.InfoEnd("SaveInitInfoXml"); }
// GET: DataInit public void SaveInitInfoXml() { Log.InfoStart("SaveInitInfoXml"); var root = _bll.GetAreaTree(false); InitInfo initInfo = new InitInfo(); initInfo.TopoInfo = new TopoInfo(root); string initFile = AppDomain.CurrentDomain.BaseDirectory + "Data\\InitInfo.xml"; XmlSerializeHelper.Save(initInfo, initFile, Encoding.UTF8); Log.InfoEnd("SaveInitInfoXml"); }