Пример #1
0
        //Constructeur
        public Reservation(Adherent unAdherent, Court unCourt, DateTime uneDtReservation, int unNbJoueurs)
        {
            this.numeroReservation = GestionClub.getDernierNumReserv();
            GestionClub.setDernierNumReserv(GestionClub.getDernierNumReserv() + 1);

            this.adherentReserve = unAdherent;
            this.courtReserve    = unCourt;
            this.dtReservation   = uneDtReservation;
            this.nbJoueurs       = unNbJoueurs;
            this.adherentReserve.setNbReservation(this.adherentReserve.getNbReservation() - 1);

            GestionClub.getToutesLesReservations().Add(this);
        }