示例#1
0
        private void actualiser()
        {
            lblEffort.Text     = "Effort : " + Math.Round(eleve.GetEffort(), 1);
            lblCompetence.Text = "Compétence : " + Math.Round(eleve.GetCompetence(), 1);
            Libelle lib = new Libelle();
            string  nom = "Élève n°" + eleve.GetId();

            this.Text        = nom;
            lblNomEleve.Text = nom;
            lblNiveau.Text   = lib.Niveau(eleve.GetClasse());
            double moyenne = eleve.GetMoyenne();

            if (moyenne == -1)
            {
                lblMoyenneNote.Text = "Pas encore d'évaluation";
            }
            else
            {
                lblMoyenneNote.Text = Math.Round(eleve.GetMoyenne(), 2).ToString() + "/20";
            }

            MajPanel(pnlCompetence, eleve.GetCompetence());
            MajPanel(pnlEffort, eleve.GetEffort());

            InitNote();
        }
示例#2
0
        public void actualiser()
        {
            Libelle lib = new Libelle();

            lblEleve.Text      = "Élève n°" + eleve.GetId();
            lblClasse.Text     = lib.Niveau(eleve.GetClasse());
            lblEffort.Text     = Math.Round(eleve.GetEffort(), 2).ToString();
            lblCompetence.Text = Math.Round(eleve.GetCompetence(), 2).ToString();

            lblMoyenne.Text = Math.Round(eleve.GetListeNotes().Last().GetNote(), 2).ToString() + "/20";

            MajPanel(pnlCompetence, eleve.GetCompetence());
            MajPanel(pnlEffort, eleve.GetEffort());
        }