예제 #1
0
        private void ButtonClickClone(object sender, RoutedEventArgs e)
        {
            IFigure figure       = new Rectangles(30, 40);
            IFigure clonedFigure = figure.Clone();

            figure.GetInfo();
            clonedFigure.GetInfo();

            IFigure figures       = new Circles(30);
            IFigure clonedFigures = figures.Clone();

            tb.Text = System.String.Format(" {0} \n {1} \n {2} \n {3}", figures.GetInfo(), clonedFigures.GetInfo(), figure.GetInfo(), clonedFigure.GetInfo());
        }