static void Main(string[] args) { EncryptFacade facade = new EncryptFacade(); facade.FileEncrypt("Facade/src.txt", "Facade/des.txt"); Console.ReadKey(); }
static void Main(string[] args) { AbstractFacade facade = new EncryptFacade(); if (facade != null) { facade.FileEncrypt("Facade/src.txt", "Facade/des.txt"); } }
static void Main(string[] args) { Console.WriteLine("Hello World!"); AbstractEncryptFacade newFacade = new NewEncryptFacade(); newFacade.FileEncrypt("Facade/src.txt", "Facade/des.txt"); IEncryptFacade encryptFacade = new EncryptFacade(); encryptFacade.FileEncrypt("Facade/src.txt", "Facade/des.txt"); }