public bool VerificarMetodo(string nombre, string apellido, string edad, string sexo, string ingresos) { if (conn.Crear("Persona", "Nombre, Apellido, Edad, Sexo, Ingresos", "'" + nombre + "', '" + apellido + "', " + edad + ", " + sexo + ", " + ingresos)) { MessageBox.Show("Valores guardados exitosamente."); if (Convert.ToInt32(edad) >= 18 && Convert.ToInt32(ingresos) >= 7000) { txtApellido.Text = ""; txtNombre.Text = ""; txtIngresos.Text = ""; cmbEdad.Text = ""; cmbSexo.Text = ""; return(true); } else { return(false); } } else { MessageBox.Show("Error al guardar datos", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } return(false); }