private void AddEquipment(Equipment equipment) { if (VendorEquipmentInventory != null) { VendorEquipmentInventory.Add(equipment); } }
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"); } }