示例#1
0
        static void Main(string[] args)
        {
            FirstComplexSystem  firstComplexSystem  = new FirstComplexSystem();
            SecondComplexSystem secondComplexSystem = new SecondComplexSystem();

            Facade facade = new Facade(firstComplexSystem, secondComplexSystem);

            facade.DoSomeImportantWork();
        }
示例#2
0
 public Facade(FirstComplexSystem firstComplexSystem, SecondComplexSystem secondComplexSystem)
 {
     this.firstComplexSystem  = firstComplexSystem;
     this.secondComplexSystem = secondComplexSystem;
 }