static void rechercherEtuMenu() { oE = rechercherEtu(); if (oE != null) { oE.afficherValeur(); } }
static void relever() { oE = rechercherEtu(); if (oE != null) { oE.relever(); } }
static void supprimerNote() { oE = rechercherEtu(); if (oE != null) { oE.afficherValeur(); oE.supprimerNote(); } }
static void ajouternote() { oE = rechercherEtu(); if (oE != null) { oE.afficherValeur(); oE.ajouterNote(); } }
static void modifierEtu() { oE = rechercherEtu(); if (oE != null) { oE.afficherValeur(); oE.saisrValeur(); } }
static void supprimerEtu() { //solution 1 int p = rechercherPosition(); if (p != -1) { Etudiants.RemoveAt(p); } //solution2 oE = rechercherEtu(); if (p != null) { Etudiants.Remove(oE); } }
static void ajouterEtudiant() { oE = new Etudiant(); oE.saisrValeur(); Etudiants.Add(oE); }