Beispiel #1
0
        public int PagePrcedanteCours(Cours cours)
        {
            int i = cours.Precedant();

            if (i != -1)
            {
                Utilities.StructCours c = new Utilities.StructCours();
                c.id           = cours.ID;
                c.pageCourante = cours.page_courante;
                Statistiques.Cours[cours.ID - 1] = c;
                Utilities.MettreAJourListeDesEleves(this);
            }
            return(i);
        }
Beispiel #2
0
        public Stats()
        {
            trophies = new bool[10];
            Cours    = new List <Utilities.StructCours>(Utilities.nbCours);
            Utilities.StructCours tmp = new Utilities.StructCours();
            for (int i = 1; i <= Utilities.nbCours; i++)
            {
                tmp.id           = i;
                tmp.pageCourante = 1; //Lors de la création on est toujours à la première page :3
                Cours.Add(tmp);
            }
            Exo = new List <Utilities.StructExo>(Utilities.nbExo);
            Utilities.StructExo exo;
            for (int i = 1; i <= 3; i++)
            {
                exo.type     = Utilities.TypeQuestion.QCM;
                exo.cours    = i;
                exo.note     = 0;
                exo.dejaFait = false;
                Exo.Add(exo);
            }
            for (int i = 1; i <= 3; i++)
            {
                exo.type     = Utilities.TypeQuestion.TrueOrFalse;
                exo.cours    = i;
                exo.note     = 0;
                exo.dejaFait = false;
                Exo.Add(exo);
            }
            for (int i = 1; i <= 3; i++)
            {
                exo.type     = Utilities.TypeQuestion.DragAndDrop;
                exo.cours    = i;
                exo.note     = 0;
                exo.dejaFait = false;
                Exo.Add(exo);
            }

            exo.type     = Utilities.TypeQuestion.Cartes;
            exo.cours    = 1;
            exo.note     = 0;
            exo.dejaFait = false;
            Exo.Add(exo);
            for (int i = 1; i <= 3; i++)
            {
                exo.type  = Utilities.TypeQuestion.Cartes;
                exo.cours = 2;
                exo.note  = 0;
                Exo.Add(exo);
            }
            exo.type  = Utilities.TypeQuestion.Cartes;
            exo.cours = 3;
            exo.note  = 0;
            Exo.Add(exo);


            Exam1DejaFait = false;
            Exam2DejaFait = false;
            noteExam1     = 0;
            noteExam2     = 0;

            etat = Utilities.EtatAncienneSession.Menu;
        }