示例#1
0
文件: Client.cs 项目: Team-on/works
 public void Delete(object toDel)
 {
     for (int i = 0; i < toBuy.Count; ++i)
     {
         TrashObj ob = toBuy[i] as TrashObj;
         if (ob == null)
         {
             continue;
         }
         if (toDel == ob.stored)
         {
             toBuy.RemoveAt(i);
             return;
         }
     }
 }
示例#2
0
文件: Client.cs 项目: Team-on/works
 public void Add(TrashObj toAdd)
 {
     toBuy.Add(toAdd);
 }