Exemplo n.º 1
0
 public void Load(string str)
 {
     string[] arr    = str.Split('|');
     string[] nowArr = arr[0].Split('#');
     for (int i = 1; i < arr.Length; i++)
     {
         if (arr[i] != "")
         {
             EquipVo vo = new EquipVo();
             vo.Update(arr[i]);
             _dataList.Add(vo);
         }
     }
     for (int i = 0; i < nowArr.Length; i++)
     {
         if (nowArr[i] != "")
         {
             nowEquip.Add(_dataList.Find(p => p.id == int.Parse(nowArr[i])));
         }
     }
 }