protected void SetTPVAction() { TPVSelectForm form = new TPVSelectForm(this); if (form.ShowDialog(this) == DialogResult.OK) { _entity.OidTpv = ((TPVInfo)form.Selected).Oid; _entity.TPV = ((TPVInfo)form.Selected).Nombre; } }
protected virtual void SetTPVAction() { TPVSelectForm form = new TPVSelectForm(this); if (form.ShowDialog(this) == DialogResult.OK) { _tpv = form.Selected as TPVInfo; _entity.OidTPV = _tpv.Oid; _entity.TPV = _tpv.Nombre; _entity.OidCuentaBancaria = _tpv.OidCuentaBancaria; _entity.CuentaBancaria = _tpv.CuentaBancaria; _entity.CalculaGastos(_tpv); Cuenta_TB.Text = _entity.CuentaBancaria; TPV_TB.Text = _entity.TPV; GastosBancarios_NTB.Text = _entity.GastosBancarios.ToString("N2"); } }