예제 #1
0
파일: Program.cs 프로젝트: bechchadli/Poo
 static void rechercherEtuMenu()
 {
     oE = rechercherEtu();
     if (oE != null)
     {
         oE.afficherValeur();
     }
 }
예제 #2
0
파일: Program.cs 프로젝트: bechchadli/Poo
 static void relever()
 {
     oE = rechercherEtu();
     if (oE != null)
     {
         oE.relever();
     }
 }
예제 #3
0
파일: Program.cs 프로젝트: bechchadli/Poo
 static void supprimerNote()
 {
     oE = rechercherEtu();
     if (oE != null)
     {
         oE.afficherValeur();
         oE.supprimerNote();
     }
 }
예제 #4
0
파일: Program.cs 프로젝트: bechchadli/Poo
 static void ajouternote()
 {
     oE = rechercherEtu();
     if (oE != null)
     {
         oE.afficherValeur();
         oE.ajouterNote();
     }
 }
예제 #5
0
파일: Program.cs 프로젝트: bechchadli/Poo
 static void modifierEtu()
 {
     oE = rechercherEtu();
     if (oE != null)
     {
         oE.afficherValeur();
         oE.saisrValeur();
     }
 }
예제 #6
0
파일: Program.cs 프로젝트: bechchadli/Poo
        static void supprimerEtu()
        {
            //solution 1
            int p = rechercherPosition();

            if (p != -1)
            {
                Etudiants.RemoveAt(p);
            }

            //solution2
            oE = rechercherEtu();
            if (p != null)
            {
                Etudiants.Remove(oE);
            }
        }
예제 #7
0
파일: Program.cs 프로젝트: bechchadli/Poo
 static void ajouterEtudiant()
 {
     oE = new Etudiant();
     oE.saisrValeur();
     Etudiants.Add(oE);
 }