private void dgvEmpresas_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dgvEmpresas.SelectedRows.Count == 1)
            {
                pRUCEmpresa = dgvEmpresas.SelectedRows[0].Cells["ruc"].Value.ToString();
                _EmpresaID  = dgvEmpresas.SelectedRows[0].Cells["empresaid"].Value.ToString();

                iForm miInterfaz = this.Owner as iForm;
                if (miInterfaz != null)
                {
                    miInterfaz.cambiarTextoRUC(pRUCEmpresa);
                }
            }
            this.Close();
        }
        private void btnSeleccionar_Click(object sender, EventArgs e)
        {
            if (dgvEmpresas.SelectedRows.Count == 1)
            {
                pRUCEmpresa = dgvEmpresas.SelectedRows[0].Cells["ruc"].Value.ToString();

                _EmpresaID = dgvEmpresas.SelectedRows[0].Cells["empresaid"].Value.ToString();

                iForm miInterfaz = this.Owner as iForm;

                if (miInterfaz != null)
                {
                    miInterfaz.cambiarTextoRUC(pRUCEmpresa);
                }
                //frmRegistroAsientos forma = (frmRegistroAsientos)this.Parent;
                //(frmRegistroAsientos)this.Parent.pCodigoCuenta = pCodigoCuenta;
            }
            cancelo_formulario = false;
            this.Close();
        }