elacruz88
10/10/2013 - 9:13 PM

Invokes the commant class instance, and executes it.

Invokes the commant class instance, and executes it.

namespace AppName.LogicaDeNegocio.Comando
{
    public class Invoker
    {
        private Comando _comando;

        public void SetComando(Comando comando)
        {
            this._comando = comando;
        }

        public void EjecutarComando()
        {
            _comando.Ejecutar();
        }
    }
}