public void AddToContactLenses(ContactLenses CL) { foreach (IComposite el in AddedProducts) { CL.AdditionList.Add(el); } }
public ProgressiveBuilder(string product) { if (product == "glasses") { Glasses = new Glasses("Progressive"); } else { _ContactLenses = new ContactLenses("Progressive"); } }
public AntireflectiveBuilder(string product) { if (product == "glasses") { Glasses = new Glasses("Antireflective"); } else { _ContactLenses = new ContactLenses("Antireflective"); } }
public MultifocalBuilder(string product) { if (product == "glasses") { Glasses = new Glasses("Multifocal"); } else { _ContactLenses = new ContactLenses("Multifocal"); } }