Esempio n. 1
0
 public PaiementModel(double montant, MembreModel m, object nature)
 {
     this.idPaiement     = Nidpaiement;
     this.dateDeEmission = DateTime.Now;
     this.montant        = montant;
     this.payeur         = m;
     this.nature         = nature;
     Nidpaiement++;
 }
Esempio n. 2
0
        public int CompareTo(object obj)
        {
            MembreModel m  = obj as MembreModel;
            string      c1 = this.classement;
            string      c2 = m.classement;
            Dictionary <string, int> Intclassement = new Dictionary <string, int> {
            };                                                                       // On Creer un tableau de liaison associant à chaque classemet un poid

            Intclassement.Add("-15", 0);
            Intclassement.Add("-4/6", 1);
            Intclassement.Add("-2/6", 2);
            Intclassement.Add("0", 3);
            Intclassement.Add("1/6", 4);
            Intclassement.Add("2/6", 5);
            Intclassement.Add("3/6", 6);
            Intclassement.Add("4/6", 7);
            Intclassement.Add("5/6", 8);
            Intclassement.Add("15", 9);
            Intclassement.Add("30", 15);
            Intclassement.Add("15/5", 14);
            Intclassement.Add("15/4", 13);
            Intclassement.Add("15/3", 12);
            Intclassement.Add("15/2", 11);
            Intclassement.Add("15/1", 10);
            Intclassement.Add("40", 21);
            Intclassement.Add("30/5", 20);
            Intclassement.Add("30/4", 19);
            Intclassement.Add("30/3", 18);
            Intclassement.Add("30/2", 17);
            Intclassement.Add("30/1", 16);
            if (c1 == null)
            {
                if (c2 == null)
                {
                    return(0);
                }
                else
                {
                    return(1);
                }
            }
            if (c2 == null)
            {
                if (c1 == null)
                {
                    return(0);
                }
                else
                {
                    return(-1);
                }
            }
            return(Intclassement[this.classement] - Intclassement[m.classement]);
        }
Esempio n. 3
0
 public CompetiteurModel(MembreModel m)
 {
     this.adresse           = m.Adresse;
     this.classement        = m.Classement;
     this.competition       = m.Competition;
     this.nom               = m.Nom;
     this.prenom            = m.Prenom;
     this.numeroDeTelephone = m.NumeroDeTelephone;
     this.sexe              = m.Sexe;
     this.dateDeNaissance   = m.DateDeNaissance;
     this.ville             = m.Ville;
 }