/* * --> BOTON LIMPIAR COMBOBOX Y TEXTBOX SISTEMAS */ private void btnLimpieza_Click(object sender, EventArgs e) { if (txtID.Text.Length == 0 || txtCodigo.Text.Length == 0 || txtNombre.Text.Length == 0 || txtMarca.Text.Length == 0 || txtModelo.Text.Length == 0 || txtPrecio.Text.Length == 0 || cbxCategoria.Text == "- Seleccione Categoria...") { // LLAMADA DE VENTANA EMERGENTE -> ERROR CAMPOS VACIOS A LA HORA DE INVOCAR METODO LIMPIEZA Form LlamadaErrorLimpieza = new MensajeLimpieza(); LlamadaErrorLimpieza.Show(); // LLAMADA DE NOTIFICACION PERSONALIZADA DE ERROR Llamada.NotificionErrorLimpieza(); } else { LimpiezaProductos(); // LLAMADA METODO LIMPIEZA } }
private void btnLimpieza_Click(object sender, EventArgs e) { if (txtIdUsuarios.Text.Length == 0 && txtP1Nombre.Text.Length == 0 && txtA1Apellido.Text.Length == 0 && txtNombreUsuario.Text.Length == 0 && txtPassword.Text.Length == 0 && cbxRolesUsuarios.Text == "- Seleccione un rol...") { // LLAMADA DE VENTANA EMERGENTE -> ERROR CAMPOS VACIOS A LA HORA DE INVOCAR METODO LIMPIEZA Form LlamadaErrorLimpieza = new MensajeLimpieza(); LlamadaErrorLimpieza.Show(); // LLAMADA DE NOTIFICACION PERSONALIZADA DE ERROR Llamada.NotificionErrorLimpieza(); } else { LimpiezaUsuarios(); // LLAMADA METODO LIMPIEZA } }
/* * --> BOTON LIMPIEZA FORMULARIO */ private void btnLimpieza_Click(object sender, EventArgs e) { if (txtIdEmpleado.Text.Length == 0 && txtP1Nombre.Text.Length == 0 && txtA1Apellido.Text.Length == 0 && txtSueldoBase.Text.Length == 0 && txtFechaNacimiento.Text.Length == 0 && txtDireccion.Text.Length == 0 && txttel.Text.Length == 0 && txtmdui.Text.Length == 0 && cbxCargo.Text == "- Seleccione Cargo..." && cbxEstadoCivil.Text == "-Seleccione Estado Civil..." && cbxGenero.Text == "- Seleccione Genero...") { // LLAMADA DE VENTANA EMERGENTE -> ERROR CAMPOS VACIOS A LA HORA DE INVOCAR METODO LIMPIEZA Form LlamadaErrorLimpieza = new MensajeLimpieza(); LlamadaErrorLimpieza.Show(); // LLAMADA DE NOTIFICACION PERSONALIZADA DE ERROR Llamada.NotificionErrorLimpieza(); } else { LimpiezaEmpleados(); // LLAMADA METODO LIMPIEZA } }