private void txtDNI_Leave(object sender, EventArgs e) { if (negocio.dniCuilDuplicado(txtDNI.Text, 'D') && txtDNI.Text != "") { MessageBox.Show("El DNI pertenece a otro empleado", "Cuidado!"); txtDNI.Focus(); txtDNI.SelectAll(); } }