Esempio n. 1
0
        public static void Run()
        {
            Subsystem1 s1 = new Subsystem1();
            Subsystem2 s2 = new Subsystem2();

            Facade facade = new Facade(s1, s2);

            System.Console.WriteLine(facade.Operation());
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            FacadeClient client = new FacadeClient();

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

            client.ClientCode(facade);
        }
Esempio n. 3
0
 public Facade(Subsystem1 s1, Subsystem2 s2)
 {
     this.Subsystem1 = s1;
     this.Subsystem2 = s2;
 }
Esempio n. 4
0
 public Facade(Subsystem1 subsystem1, Subsystem2 subsystem2)
 {
     this._subsystem1 = subsystem1;
     this._subsystem2 = subsystem2;
 }