private void Builder_Click(object sender, RoutedEventArgs e)
        {
            ConcreteBuilder build    = new ConcreteBuilder();
            Director        director = new Director(build);

            director.Construct();
            decor.SetComponent(build);
            decor.GetResult();
            grid1.Children.Add(decor.builder.el2);
            grid1.Children.Add(decor.builder.el1);
        }
Exemple #2
0
 public Director(ConcreteBuilder _builder)
 {
     this.builder = _builder;
 }