Ejemplo n.º 1
0
        private void txtCodigo_TextChanged(object sender, EventArgs e)
        {
            txtNome.Clear();

            var idProduto = txtCodigo.Text;

            var produtoEnt = new Produto {idProduto = idProduto, ativo = true};

            pesquisaVendaStrategy = new PesquisaVendaStrategy(new PesquisaPorCod(produtoEnt, lojaEnt, listSession));
        }
Ejemplo n.º 2
0
 private void txtNome_TextChanged(object sender, EventArgs e)
 {
     if (txtNome.Text.Trim() != "")
     {
         txtCodigo.Clear();
         pesquisaVendaStrategy = new PesquisaVendaStrategy(new PesquisaPorNome());
     }
 }