private void SQLupdate() { string configPath = Application.StartupPath + "\\配置文件\\Config.xml"; Param param = new Param(); #region 读取数据,更新数据 param = new Param(); DataKeep.Serialize(configPath, false, ref param); string sqldata = ""; foreach (Map map in param.Maps) { sqldata += map.Name + ","; } sqldata = sqldata.TrimEnd(','); sql.Init(); #endregion }