Example #1
0
        public static void EX2()
        {
            ChainOfResponsability.Exemplo2.ControladorLeitor controlador = new Exemplo2.ControladorLeitor();

            controlador.AddCorrente(new ChainOfResponsability.Exemplo2.LeitorAlien());
            controlador.AddCorrente(new ChainOfResponsability.Exemplo2.LeitorImpinj());
            controlador.AddCorrente(new ChainOfResponsability.Exemplo2.LeitorMotorola());

            controlador.Ler();
        }
        public static void EX2()
        {
            ChainOfResponsability.Exemplo2.ControladorLeitor controlador = new Exemplo2.ControladorLeitor();

            controlador.AddCorrente(new ChainOfResponsability.Exemplo2.LeitorAlien());
            controlador.AddCorrente(new ChainOfResponsability.Exemplo2.LeitorImpinj());
            controlador.AddCorrente(new ChainOfResponsability.Exemplo2.LeitorMotorola());

            controlador.Ler();
        }