public void AddToGlasses(Glasses glasses) { foreach (IComposite el in AddedProducts) { glasses.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"); } }
public AntireflectiveBuilder() { Glasses = new Glasses("Antireflective"); }
public MultifocalBuilder() { Glasses = new Glasses("Multifocal"); }
public ProgressiveBuilder() { Glasses = new Glasses("Progressive"); }