Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            EncryptFacade facade = new EncryptFacade();

            facade.FileEncrypt("Facade/src.txt", "Facade/des.txt");

            Console.ReadKey();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            AbstractFacade facade = new EncryptFacade();

            if (facade != null)
            {
                facade.FileEncrypt("Facade/src.txt", "Facade/des.txt");
            }
        }
Ejemplo n.º 3
0
        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");
        }