예제 #1
0
        private void ButtonClickCreateComplexObject(object sender, RoutedEventArgs e)
        {
            Creater             creater             = new Creater();
            ComplexObjectBilder complexObjectBilder = new YellowComplexObjectBilder();
            ComplexObject       grenComplexObject   = creater.complexObject(complexObjectBilder);

            Greed.Children.Add(complexObjectBilder.SetCircletes());
            Greed.Children.Add(complexObjectBilder.SetSquaretes());
            String str = grenComplexObject.ToString();

            complexObjectBilder = new BlueComplexObjectBilder();
            ComplexObject BlueComplexObject = creater.complexObject(complexObjectBilder);

            Greed.Children.Add(complexObjectBilder.SetSquaretes());
        }