private void btnGuardar_Click(object sender, EventArgs e) { if (ValidatorData.validateEmptyFields(this.groupBoxTarjetaCredito)) { return; } if (ValidateForm().ShowIfThereAreErrors()) { return; } repoCliente.AddNroTarjetaCredito(UserSession.UserId, txtTarjetaCredito.Text); this.DialogResult = DialogResult.OK; }