예제 #1
0
 public void AddToContactLenses(ContactLenses CL)
 {
     foreach (IComposite el in AddedProducts)
     {
         CL.AdditionList.Add(el);
     }
 }
예제 #2
0
 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");
     }
 }
예제 #4
0
 public MultifocalBuilder(string product)
 {
     if (product == "glasses")
     {
         Glasses = new Glasses("Multifocal");
     }
     else
     {
         _ContactLenses = new ContactLenses("Multifocal");
     }
 }