Пример #1
0
         public void AddAssociatedPart(Part part)
 {
     if (LookupAssociatedPart(part.PartID) != null)
     {
         return;                                            // don't add dups
     }
     AssociatedParts.Add(part);
 }
Пример #2
0
 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);
 }
Пример #3
0
 public void addAssociatedPart(Part part)
 {
     AssociatedParts.Add(part);
 }
Пример #4
0
 public static void  AddAssociatedPart(Part part)
 {
     AssociatedParts.Add(part);
 }
Пример #5
0
 public void AddAssociatedPart(Part partToAssociate)
 {
     AssociatedParts.Add(partToAssociate);
 }