Exemple #1
0
        private void btn_search_cliente_Click(object sender, EventArgs e)
        {
            EBuscador oc_cliente = new EBuscador();
            Frm_Buscador ofrm = new Frm_Buscador(oc_cliente.ListaCliente());
            if (ofrm.ShowDialog() == DialogResult.OK)
            {
                txt_codcliente.Text = EBuscador.pcodigo;
                ECliente ocliente = ECliente.BuscarById(EBuscador.pcodigo);
                txt_nomcliente.Text = ocliente.Ape_nom;


            }
        }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            EBuscador oc_cliente = new EBuscador();
            Frm_Buscador ofrm = new Frm_Buscador(oc_cliente.ListaCliente());
            if (ofrm.ShowDialog() == DialogResult.OK)
            {
                txt_cod_cliente.Text = EBuscador.pcodigo;
                ECliente ocliente = ECliente.BuscarById(EBuscador.pcodigo);
                txt_nomcliente.Text = ocliente.Ape_nom;
                txt_direccion.Text = ocliente.Direccion;
                txt_referencia.Text = ocliente.Referencia;
                txt_tipodocumento.Text = ocliente.Desc_tipodocumento;
                txt_numdocumento.Text = ocliente.Ndocumento;

            }
        }