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); }
public Director(ConcreteBuilder _builder) { this.builder = _builder; }