示例#1
0
        public static void Main(string[] args)
        {
            ShapeMaker shapeMaker = new ShapeMaker();

            shapeMaker.drawCircle();
            shapeMaker.drawRectangle();
            shapeMaker.drawSquare();
        }
示例#2
0
        private static void Facade()
        {
            ShapeMaker shapeMaker = new ShapeMaker();

            shapeMaker.drawCircle();
            shapeMaker.drawRectangle();
            shapeMaker.drawSquare();
        }
示例#3
0
        private void btFacadePattern_Click(object sender, EventArgs e)
        {
            string     str        = "";
            ShapeMaker shapeMaker = new ShapeMaker();

            str += shapeMaker.drawCircle() + "\r\n";
            str += shapeMaker.drawRectangle() + "\r\n";
            str += shapeMaker.drawSquare() + "\r\n";
            tbOutWindow.Text = str;
        }