private void ingreso() { string nivel = "0"; if (CboNivel.Text == "Administrador") { nivel = "2"; } else { nivel = "3"; } string[] datos = { LblId.Text, TxtNom.Text, TxtUsu.Text, TxtPass2.Text, nivel }; if (usu.existe(LblId.Text)) { if (usu.updat(datos)) { MessageBox.Show("Datos del usuario actualizados correctamente"); } else { MessageBox.Show("Error al actualizar datos"); } } else { if (usu.ingre(datos)) { MessageBox.Show("Datos del usuario ingresados correctamente"); } else { MessageBox.Show("Error al ingresar datos"); } } limpiar(); }