public void init() { //for (int i = 0; i < 10; i++) //{ // this.Add(new Adherent("Num Adherent"+i, "Nom" + i, "Prenom" + i, i, "Nom rue" + i, i, "Ville" + i, "Tel" + i , "Mail" + i, DateTime.Now.AddDays(30), "Mdp" + i)); //} DAO_Adherent.Init_Adherents(this); }
public Adherents Recherche_par_nom(string nom) { Adherents resultat = new Adherents(); resultat.Clear(); foreach (Adherent a in this) { if (a.Nom.ToUpper() == nom.ToUpper()) { resultat.Add(a); break; } } DAO_Adherent.Init_Adherents(this); return(this); }
public Adherents Recherche_par_num(int num) { Adherents resultat = new Adherents(); resultat.Clear(); foreach (Adherent a in this) { if (a.NumeroAdherent.ToString() == num.ToString()) { resultat.Add(a); break; } } DAO_Adherent.Init_Adherents(this); return(this); }