Esempio n. 1
0
        private void dgvCuentas_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dgvCuentas.SelectedRows.Count == 1)
            {
                pCodigoCuenta = dgvCuentas.SelectedRows[0].Cells["CodigoPlanCuenta"].Value.ToString();
                _planCuentaID = dgvCuentas.SelectedRows[0].Cells["PlanCuentaId"].Value.ToString();

                iForm miInterfaz = this.Owner as iForm;
                if (miInterfaz != null)
                {
                    miInterfaz.cambiarTexto(pCodigoCuenta);
                }
            }
            this.Close();
        }
Esempio n. 2
0
        private void btnSeleccionar_Click(object sender, EventArgs e)
        {
            if (dgvCuentas.SelectedRows.Count == 1)
            {
                pCodigoCuenta = dgvCuentas.SelectedRows[0].Cells["CodigoPlanCuenta"].Value.ToString();

                _planCuentaID = dgvCuentas.SelectedRows[0].Cells["PlanCuentaId"].Value.ToString();

                iForm miInterfaz = this.Owner as iForm;

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