diff --git a/psychorientation/psychorientation/InterfaceClasse.cs b/psychorientation/psychorientation/InterfaceClasse.cs index d28b2e6054fbe55ba630b9ee47289c08239cad7f..68ad225541a2217b1a5a7fc20812de7725dab53e 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 1c31329a5cbba92ae7e74b7cc08f77a1c796d610..bdaf1c6983d5b8d444f596e8f3c8a90892e4acd2 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 52fe073311937e5a24eb79a6a7dac3d3932674af..8338f6989301d330f99a406c850994c28c9fc034 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 c9d7fec3aeb2a2f17a784bba54462dd6a0b4dbe4..2175b835fa7e2795ad191199d7e124ec820cd89d 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 546e8535aaf02390e508ddcf7da6e1431c021deb..5edca88c3a8d707f7899e14782e37f67bf4b4398 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" />