private void txtCUITd_Leave(object sender, EventArgs e) { if ((!(txtCUITd.Text == " - -")) && (!Funciones.CuiltValido(txtCUITd.Text))) { MessageBox.Show("Por favor ingrese un CUIT/L válido.", "Gestión - Remito", MessageBoxButtons.OK, MessageBoxIcon.Warning); txtCUITd.Text = ""; } }
private void txtCUIL_Leave(object sender, EventArgs e) { if ((txtCUIL.Text != " - -") && (!Funciones.CuiltValido(txtCUIL.Text))) { MessageBox.Show("El Cuil ingresado no es valido.", "Gestión - Modificar Cliente", MessageBoxButtons.OK, MessageBoxIcon.Warning); txtCUIL.Clear(); } }