예제 #1
0
 static void Main(string[] args)
 {
     // 通过Facade调用所有SubSystemOne,SubSystemTwo的方法,屏蔽了client对两个子类的访问。
     Facade f = new Facade();
     f.Method1();
     f.Method2();
 }
예제 #2
0
        static void Main(string[] args)
        {
            Facade facade = new Facade();
            facade.MethodA();
            facade.MethodB();

            Console.ReadKey();
        }