From 435521ee2cae9ef1e9a9d6c88e76c41a49f3d5de Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Gross?= <loic.gross@unistra.fr>
Date: Wed, 1 Apr 2020 17:53:58 +0200
Subject: [PATCH] =?UTF-8?q?InterfaceInfoCompletEleve=20barre=20effort=20co?=
 =?UTF-8?q?mp=C3=A9tence?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 psychorientation/psychorientation/InterfaceClasse.cs      | 4 ++++
 .../InterfaceInfoCompletEleve.Designer.cs                 | 2 +-
 .../psychorientation/InterfaceInfoCompletEleve.cs         | 7 +++++--
 psychorientation/psychorientation/ListeEleve.cs           | 5 -----
 psychorientation/psychorientation/psychorientation.csproj | 8 +++++---
 5 files changed, 15 insertions(+), 11 deletions(-)

diff --git a/psychorientation/psychorientation/InterfaceClasse.cs b/psychorientation/psychorientation/InterfaceClasse.cs
index d28b2e6..68ad225 100644
--- a/psychorientation/psychorientation/InterfaceClasse.cs
+++ b/psychorientation/psychorientation/InterfaceClasse.cs
@@ -28,6 +28,10 @@ namespace psychorientation
 
             Message m_accueil = new Message(-1, "Bonjour apprenti prof, vous allez apprendre à éduquer des joueurs !! ", "Début", TypeMessage.INFORMATION);
             m_accueil.ShowDialog();
+
+            InterfaceInfoCompletEleve iice = new InterfaceInfoCompletEleve();
+            iice.setParam(new Eleve(3));
+            iice.ShowDialog();
         }
 
         private void Pb_action_suivante_Click(object sender, EventArgs e)
diff --git a/psychorientation/psychorientation/InterfaceInfoCompletEleve.Designer.cs b/psychorientation/psychorientation/InterfaceInfoCompletEleve.Designer.cs
index 1c31329..bdaf1c6 100755
--- a/psychorientation/psychorientation/InterfaceInfoCompletEleve.Designer.cs
+++ b/psychorientation/psychorientation/InterfaceInfoCompletEleve.Designer.cs
@@ -137,7 +137,7 @@
             this.pnlCompetence.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
             this.pnlCompetence.Location = new System.Drawing.Point(3, 4);
             this.pnlCompetence.Name = "pnlCompetence";
-            this.pnlCompetence.Size = new System.Drawing.Size(125, 18);
+            this.pnlCompetence.Size = new System.Drawing.Size(133, 18);
             this.pnlCompetence.TabIndex = 7;
             // 
             // lblMoyenneNote
diff --git a/psychorientation/psychorientation/InterfaceInfoCompletEleve.cs b/psychorientation/psychorientation/InterfaceInfoCompletEleve.cs
index 52fe073..8338f69 100755
--- a/psychorientation/psychorientation/InterfaceInfoCompletEleve.cs
+++ b/psychorientation/psychorientation/InterfaceInfoCompletEleve.cs
@@ -28,7 +28,8 @@ namespace psychorientation
 
         }
 
-        private void InterfaceInfoCompletEleve_Load(object sender, EventArgs e, Eleve el)
+
+        public void setParam(Eleve el)
         {
             this.eleve = el;
             actualiser();
@@ -37,7 +38,9 @@ namespace psychorientation
         private void actualiser()
         {
             Libelle lib = new Libelle();
-            lblNomEleve.Text = "Eleve n°" + eleve.GetId();
+            string nom = "Eleve n°" + eleve.GetId();
+            this.Text = nom;
+            lblNomEleve.Text = nom;
             lblNiveau.Text = lib.Niveau(eleve.GetClasse());
             double moyenne = eleve.GetMoyenne();
             if (moyenne == -1)
diff --git a/psychorientation/psychorientation/ListeEleve.cs b/psychorientation/psychorientation/ListeEleve.cs
index c9d7fec..2175b83 100755
--- a/psychorientation/psychorientation/ListeEleve.cs
+++ b/psychorientation/psychorientation/ListeEleve.cs
@@ -23,11 +23,6 @@ namespace psychorientation
             GestionnaireEleve gestEleve = new GestionnaireEleve();
             Libelle lib = new Libelle();
 
-            Eleve el1 = new Eleve(1);
-            Eleve el2 = new Eleve(2);
-            gestEleve.AjouterEleve(el1);
-            gestEleve.AjouterEleve(el2);
-
             List<Eleve> listEleve = gestEleve.GetListeEleves();
             int y = 0;
             foreach ( Eleve eleve in listEleve)
diff --git a/psychorientation/psychorientation/psychorientation.csproj b/psychorientation/psychorientation/psychorientation.csproj
index 546e853..5edca88 100644
--- a/psychorientation/psychorientation/psychorientation.csproj
+++ b/psychorientation/psychorientation/psychorientation.csproj
@@ -86,13 +86,13 @@
     <Compile Include="Note.cs" />
     <Compile Include="Program.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
-    <Compile Include="Properties\AssemblyInfo.cs" />
     <EmbeddedResource Include="InterfaceClasse.resx">
+      <DependentUpon>InterfaceClasse.cs</DependentUpon>
     </EmbeddedResource>
-    <EmbeddedResource Include="ListeEleve.resx">
     <EmbeddedResource Include="InterfaceInfoCompletEleve.resx">
       <DependentUpon>InterfaceInfoCompletEleve.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="ListeEleve.resx">
       <DependentUpon>ListeEleve.cs</DependentUpon>
     </EmbeddedResource>
     <EmbeddedResource Include="InterfaceInfoEleve.resx">
@@ -108,7 +108,8 @@
     </EmbeddedResource>
     <Compile Include="Properties\Resources.Designer.cs">
       <AutoGen>True</AutoGen>
-      <AutoGen>True</AutoGen>
+      <DependentUpon>Resources.resx</DependentUpon>
+      <DesignTime>True</DesignTime>
     </Compile>
     <None Include="packages.config" />
     <None Include="Properties\Settings.settings">
@@ -122,6 +123,7 @@
     </Compile>
   </ItemGroup>
   <ItemGroup>
+    <None Include="App.config" />
   </ItemGroup>
   <ItemGroup>
     <None Include="Resources\passer.png" />
-- 
GitLab