public void AddInStock(InStock stock) { PartInWeight tempWeight = new PartInWeight(); tempWeight.Name = "Fasto Cap"; tempWeight.Weight = 100.0f; //tempWeight.Parts.Add(new PartWithWeight("Fasto Cap", "Fasto's pen cap", 1.0f)); //tempWeight.Parts.Add(new PartWithWeight("Fasto Barrel", "Fasto's pen Barrel", 1.0f)); stock.Add(tempWeight); PartInCount tempCount = new PartInCount(); tempCount.Name = "Fasto Refill"; tempCount.Count = 100; //tempCount.Parts.Add(new PartWithWeight("Fasto Refill", "Fasto's pen refill", 1)); stock.Add(tempCount); }
public void AddInStock(InStock stock) { PartInWeight tempWeight = new PartInWeight(); tempWeight.Name = "Fasto Cap"; tempWeight.Weight = 100.0f; Console.WriteLine("Part coming in Weight: '{0}', Weight: '{1}'", tempWeight.Name, tempWeight.Weight); //tempWeight.Parts.Add(new PartWithWeight("Fasto Cap", "Fasto's pen cap", 1.0f)); //tempWeight.Parts.Add(new PartWithWeight("Fasto Barrel", "Fasto's pen Barrel", 1.0f)); stock.Add(tempWeight); PartInCount tempCount = new PartInCount(); tempCount.Name = "Fasto Refill"; tempCount.Count = 100; Console.WriteLine("Part coming in Count: '{0}', Count: '{1}'", tempCount.Name, tempCount.Count); //tempCount.Parts.Add(new PartWithWeight("Fasto Refill", "Fasto's pen refill", 1)); stock.Add(tempCount); }