private void Cuenta_BT_Click(object sender, EventArgs e) { BankAccountSelectForm form = new BankAccountSelectForm(this); if (form.ShowDialog(this) == DialogResult.OK) { BankAccountInfo cuenta = form.Selected as BankAccountInfo; _entity.CuentaBancaria = cuenta.Valor; } }
protected virtual void SetCuenta() { TPV item = (TPV)Datos.Current; BankAccountSelectForm form = new BankAccountSelectForm(this); if (form.ShowDialog(this) == DialogResult.OK) { BankAccountInfo cuenta = form.Selected as BankAccountInfo; item.OidCuentaBancaria = cuenta.Oid; item.CuentaBancaria = cuenta.Valor; Datos_DGW.CurrentCell.Value = cuenta.Valor; } }