public void AddAssociatedPart(Part part) { if (LookupAssociatedPart(part.PartID) != null) { return; // don't add dups } AssociatedParts.Add(part); }
public Product(int prodID, string prdName, decimal prdPrice, int stock, int minimum, int maximum, Part assocPart) { ProductID = prodID; Name = prdName; Price = prdPrice; InStock = stock; Min = minimum; Max = maximum; AssociatedParts.Add(assocPart); }
public void addAssociatedPart(Part part) { AssociatedParts.Add(part); }
public static void AddAssociatedPart(Part part) { AssociatedParts.Add(part); }
public void AddAssociatedPart(Part partToAssociate) { AssociatedParts.Add(partToAssociate); }