Пример #1
0
 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
 public void Add(TrashObj toAdd)
 {
     toBuy.Add(toAdd);
 }