public static void Main(string[] args) { ShapeMaker shapeMaker = new ShapeMaker(); shapeMaker.drawCircle(); shapeMaker.drawRectangle(); shapeMaker.drawSquare(); }
private static void Facade() { ShapeMaker shapeMaker = new ShapeMaker(); shapeMaker.drawCircle(); shapeMaker.drawRectangle(); shapeMaker.drawSquare(); }
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; }