private void btnbuscarcliente_Click(object sender, EventArgs e)
        {
            FrmBuscar objeto = new FrmBuscar();

            objeto.ShowDialog();
            txtcliente.Text   = objeto.contacto;
            txtruc.Text       = objeto.ruc;
            txtdireccion.Text = objeto.direccion;
        }
示例#2
0
        private void btnBuscar_Click(object sender, EventArgs e)
        {
            FrmBuscar objeto = new FrmBuscar();

            objeto.ShowDialog();
            txtCodigo.Text      = objeto.codigo;
            txtRazonSocial.Text = objeto.razon;
            TxtDireccion.Text   = objeto.direccion;
            txtTelefono.Text    = objeto.telefono;
            txtRuc.Text         = objeto.ruc;
            cboDistrito.Text    = objeto.cod_dis;
            dtpFechaReg.Text    = objeto.fcha_reg;
            txtTipoCliente.Text = objeto.tip_cli;
            txtContacto.Text    = objeto.contacto;

            btnEditar.Enabled = true;
        }