private void button3_Click(object sender, EventArgs e) { var clase = new ValidacionClass(); var resp = clase.ValidaGtin13(txtgtin13.Text); if (resp) { MessageBox.Show(@"Correcto", @"Info", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } else { MessageBox.Show(@"Incorrecto", @"Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void btnExtraeInfo_Click(object sender, EventArgs e) { Limpiar(); var clase = new ValidacionClass(); var valid = clase.Validar10(txtTarjeta.Text); if (valid) { lblValidacion.Text = @"Valida"; var resp = clase.ExtraeData(txtTarjeta.Text); lbldv.Text = resp.Dv; lblCuenta.Text = resp.Cuenta; lblTipo.Text = resp.Tipo; lblIndustria.Text = resp.Industria; lblBanco.Text = resp.Banco; } else { lblValidacion.Text = @"Invalida"; } }