Esempio n. 1
0
 private void AddEquipment(Equipment equipment)
 {
     if (VendorEquipmentInventory != null)
     {
         VendorEquipmentInventory.Add(equipment);
     }
 }
Esempio n. 2
0
 private void RemoveEquipment(Equipment equipment)
 {
     if (VendorEquipmentInventory.Contains(equipment))
     {
         VendorEquipmentInventory.Remove(equipment);
     }
     else
     {
         throw new Exception("Somehow the vendor is selling a piece of equipment they don't own");
     }
 }