static void Main(string[] args) { FacadeClass.Operation1(); FacadeClass.Operation2(); Console.ReadLine(); }
static void Main(string[] args) { FacadeClass facade = new FacadeClass(); Console.WriteLine(facade.TurnOffComputerAndMonitor()); Console.ReadLine(); }
public void Execute() { FacadeClass fs = new FacadeClass(); fs.Turn(); fs.Turn(); }
static void Main(string[] args) { FacadeClass facade = new FacadeClass(); facade.MethodA(); facade.MethodB(); Console.ReadKey(); }
static void Main(string[] args) { FacadeClass facade = new FacadeClass(new HardObject1(), new HardObject2(), new HardObject3()); facade.DoAction1(); Console.WriteLine("---------------"); facade.DoAction2(); Console.ReadLine(); }
static void Main(string[] args) { var first = new FirstClass(); var second = new SecondClass(); var third = new ThirdClass(); var facade = new FacadeClass(first, second, third); facade.ComfortableMethod(); }
static void Main(string[] args) { FacadeClass facade = new FacadeClass(); facade.Execution1(); facade.Execution2(); }