public static void modifier(professeur Prof, string CNI, string matiere, string nom, string prenom) { Prof.CNI = CNI; Prof.matiere = matiere; Prof.nom = nom; Prof.prenom = prenom; personneDO.modifier(Prof, CNI, nom, prenom, "Professeur"); }
public static void Ajouter(string CNI, string CNE, string nom, string prenom) { professeur newP = new professeur(); newP.matiere = CNE; newP.CNI = CNI; newP.nom = nom; newP.prenom = prenom; professeurDO.Ajouter(newP); }
private void FormTrouver_Load(object sender, EventArgs e) { if (pTrouver.statut == "Etudiant") { etudiant E = new etudiant(); E = etudiantBO.chercher(pTrouver.CNI); textCNI.Text = E.CNI; textNom.Text = E.nom; textPrenom.Text = E.prenom; textCNE.Text = E.CNE; groupBox1.Text = "Statut : ETUDIANT"; } else { if (pTrouver.statut == "Professeur") { professeur P = new professeur(); P = professeurBO.chercher(pTrouver.CNI); textCNI.Text = P.CNI; textNom.Text = P.nom; textPrenom.Text = P.prenom; textCNE.Text = P.matiere; groupBox1.Text = "Statut : PROFESSEUR"; } } ancienCNI = pTrouver.CNI; labCNI.Text = "CNI : " + textCNI.Text; labNOM.Text = "Nom : " + textNom.Text; labPRENOM.Text = "Prénom : " + textPrenom.Text ; labCNE.Text = "Matière : " + textCNE.Text; }
public static void Supprimer(string cni) { professeur P = new professeur(); P = professeurDO.trouver(cni); professeurDO.Supprimer(P); }
public static void modifier(string CNI, string newMatiere, string matiere, string nom, string prenom) { professeur newP = new professeur(); newP = professeurDO.trouver(CNI); professeurDO.modifier(newP, newMatiere, matiere, nom, prenom); }
public static professeur chercher(string cni) { professeur X = new professeur(); X = professeurDO.trouver(cni); return X; }
public static void Supprimer(professeur Pnew) { ListeProfesseurs.Remove(Pnew); personneDO.Supprimer(Pnew); }
public static void Ajouter(professeur newProfesseur) { ListeProfesseurs.Add(newProfesseur); personneDO.Ajouter(newProfesseur, "Professeur"); }