Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            //constructors
            Interface1 Interface1 = new Interface1();
            Interface2 Interface2 = new Interface2();
            Facade     facade     = new Facade(Interface1, Interface2);

            Client.ClientCode(facade); //uses facade

            Console.ReadLine();        //prevents console from closing
        }
Ejemplo n.º 2
0
 public Facade(Interface1 Interface1, Interface2 Interface2)
 {
     this._Interface1 = Interface1;
     this._Interface2 = Interface2;
 }