예제 #1
0
        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);
        }
예제 #2
0
 public Director(ConcreteBuilder _builder)
 {
     this.builder = _builder;
 }