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");
     }
 }
Exemple #4
0
 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");
 }
Exemple #7
0
 public ProgressiveBuilder()
 {
     Glasses = new Glasses("Progressive");
 }