public void UpdateDest() { // DestInfos = Clone<BaseDataInfo>(SrcInfos); DestInfos = SrcInfos.DeepClone(); string path = GetMapPath(); if (File.Exists(path)) { var mapperInfos = MappInfo.Deserialize(path); var tmp = new List <BaseDataInfo>(); DestInfos.ForEach(x => { var info = mapperInfos.FirstOrDefault(y => y.Key == x.技能组); if (info != null) { if (info.Value == "-1") { // DestInfos.Remove(x); } else { x.技能组 = info.Value; tmp.Add(x); } } else { tmp.Add(x); } }); DestInfos = tmp; } }
private void InitMapper() { string path = GetMapPath(); if (File.Exists(path)) { mapperInfos = MappInfo.Deserialize(path); } InitGroups(GroupsList); }