Пример #1
0
        static void Main(string[] args)
        {
            Client client = new Client();

            Subsystem1 s1     = new Subsystem1();
            Subsystem2 s2     = new Subsystem2();
            Facade     facade = new Facade(s1, s2);

            client.ClientCode(facade);
        }
Пример #2
0
 public Facade(Subsystem1 s1, Subsystem2 s2)
 {
     this.Subsystem1 = s1;
     this.Subsystem2 = s2;
 }