Пример #1
0
        public void Ex1()
        {
            Subsystem1 subsystem1 = new Subsystem1();
            Subsystem2 subsystem2 = new Subsystem2();
            Facade     facade     = new Facade(subsystem1, subsystem2);

            // Användning av fascaden:
            Console.Write(facade.Operation());
        }
Пример #2
0
 public Facade(Subsystem1 subsystem1, Subsystem2 subsystem2)
 {
     _subsystem1 = subsystem1;
     _subsystem2 = subsystem2;
 }