Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }