Exemplo n.º 1
0
 public void MethodA()
 {
     _one.Method1();
     _two.Method2();
     _three.Method3();
     _four.Method4();
 }
Exemplo n.º 2
0
        public void Main()
        {
            //Работа с подсистемами 1,2,3,4 через фасад
            _facade = new Facade();
            _facade.MethodA();
            _facade.MethodB();

            //Работа с подсистемой напрямую без фасада
            SubSystem3 three = _facade.Three;

            three.Method3();
        }