From 7dbdb0dae63f9f8c6607fb58546be70902cd3a31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20F=C3=A9lix?= <felixantoine67@yahoo.fr> Date: Wed, 1 Apr 2020 16:42:25 +0200 Subject: [PATCH] =?UTF-8?q?Correction=20d'un=20appel=20du=20gestionnaire?= =?UTF-8?q?=20erron=C3=A9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- psychorientation/psychorientation/GestionnaireEleve.cs | 2 +- psychorientation/psychorientation/ListeEleve.cs | 2 +- psychorientation/psychorientation/eleve.cs | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/psychorientation/psychorientation/GestionnaireEleve.cs b/psychorientation/psychorientation/GestionnaireEleve.cs index fad4253..9ee4503 100644 --- a/psychorientation/psychorientation/GestionnaireEleve.cs +++ b/psychorientation/psychorientation/GestionnaireEleve.cs @@ -27,7 +27,7 @@ namespace psychorientation this.listeEleves.RemoveAt(indice); } - public List<Eleve> GetlisteEleves() + public List<Eleve> GetListeEleves() { return this.listeEleves; } diff --git a/psychorientation/psychorientation/ListeEleve.cs b/psychorientation/psychorientation/ListeEleve.cs index d7bc218..c9d7fec 100755 --- a/psychorientation/psychorientation/ListeEleve.cs +++ b/psychorientation/psychorientation/ListeEleve.cs @@ -28,7 +28,7 @@ namespace psychorientation gestEleve.AjouterEleve(el1); gestEleve.AjouterEleve(el2); - List<Eleve> listEleve = gestEleve.GetListEleve(); + List<Eleve> listEleve = gestEleve.GetListeEleves(); int y = 0; foreach ( Eleve eleve in listEleve) { diff --git a/psychorientation/psychorientation/eleve.cs b/psychorientation/psychorientation/eleve.cs index 74a855f..11b0034 100644 --- a/psychorientation/psychorientation/eleve.cs +++ b/psychorientation/psychorientation/eleve.cs @@ -102,6 +102,12 @@ namespace psychorientation + public void Progression(double typeEducation) + { + this.competence += (this.effort - typeEducation) / competence * 2; + this.effort += (this.effort - typeEducation) / competence * 2; + } + public void AjouterNote(string nom) { Note n = new Note(nom, CalculerNote(), this.competence, this.effort); -- GitLab