private bool validar(int error) { bool errores = false; if (error == 1 && tallerIdNumericUpDown.Value == 0) { GenaralerrorProvider.SetError(tallerIdNumericUpDown, "Llenar taller Id"); errores = true; } if (error == 2 && string.IsNullOrEmpty(nombreTextBox.Text)) { GenaralerrorProvider.SetError(nombreTextBox, "Llene Nombre"); errores = true; } return(errores); }
private bool validar(int error) { bool errores = false; if (error == 1 && entradaIdNumericUpDown.Value == 0) { GenaralerrorProvider.SetError(entradaIdNumericUpDown, "Llenar Entrada Id"); errores = true; } if (error == 2 && cantidadNumericUpDown.Value == 0) { GenaralerrorProvider.SetError(cantidadNumericUpDown, "Llene Nombre"); errores = true; } return(errores); }
private bool validar(int error) { bool errores = false; if (error == 1 && vehiculosIdNumericUpDown.Value == 0) { GenaralerrorProvider.SetError(vehiculosIdNumericUpDown, "Llenar Persona Id"); errores = true; } if (error == 2 && string.IsNullOrEmpty(descripcionTextBox.Text)) { GenaralerrorProvider.SetError(descripcionTextBox, "Llene Mantenimiento"); errores = true; } return(errores); }