private void Cuenta_BT_Click(object sender, EventArgs e) { CuentaBancariaSelectForm form = new CuentaBancariaSelectForm(ETipoCuenta.Todas, this); if (form.ShowDialog() == DialogResult.OK) { _entity.CuentaBancaria = ((CuentaBancaria)form.Selected).Valor; } }
private void Cuenta_BT_Click(object sender, EventArgs e) { CuentaBancariaSelectForm form = new CuentaBancariaSelectForm(this, CuentaBancariaList.GetList(ETipoCuenta.CuentaCorriente, EEstado.Activo, false)); if (form.ShowDialog(this) == DialogResult.OK) { CuentaBancariaInfo cuenta = form.Selected as CuentaBancariaInfo; _entity.OidCuentaBancaria = cuenta.Oid; _entity.CuentaBancaria = cuenta.Valor; CuentaBancaria_TB.Text = cuenta.Valor; } }