Skip to content
Snippets Groups Projects
Commit 98a2850a authored by Antoine Félix's avatar Antoine Félix
Browse files

Suppression de l'ancien formulaire "Form1.cs".

parents aeb8e910 8b194929
Branches
No related merge requests found
Showing
with 106 additions and 0 deletions
psychorientation/images/perso/personnage1.png

5.31 KiB

psychorientation/images/perso/personnage2.png

6.59 KiB

psychorientation/images/perso/personnage3.png

5.95 KiB

psychorientation/images/perso/personnage4.png

5.55 KiB

psychorientation/images/salle/salleV1.png

149 KiB

psychorientation/images/table/bureau.png

5.28 KiB

psychorientation/images/table/tableBleue.png

5.26 KiB

psychorientation/images/table/tableJaune.png

5.22 KiB

psychorientation/images/table/tableRose.png

5.21 KiB

psychorientation/images/table/tableRouge.png

5.2 KiB

psychorientation/images/table/tableVerte.png

5.19 KiB

psychorientation/images/table/tableViolette.png

5.24 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace psychorientation
{
public class GestionnaireEleve
{
private List<Eleve> listEleve = new List<Eleve>();
public GestionnaireEleve()
{
}
public void ajouterEleve(Eleve e)
{
this.listEleve.Add(e);
}
public void supprimerEleve(Eleve e)
{
this.listEleve.Remove(e);
}
public void supprimerEleve(int indice)
{
this.listEleve.RemoveAt(indice);
}
public List<Eleve> getListEleve()
{
return this.listEleve;
}
public Eleve getEleve(int indice)
{
return this.listEleve[indice];
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace psychorientation
{
public class Note
{
private string nom;
private double note;
private double competence;
private double effort;
public Note(string nom, double note, double competence, double effort)
{
this.nom = nom;
this.note = note;
this.competence = competence;
this.effort = effort;
}
public string getNom()
{
return this.nom;
}
public double getNote()
{
return this.note;
}
public double getCompetence()
{
return this.competence;
}
public double getEffort()
{
return this.effort;
}
}
}
......@@ -13,6 +13,7 @@ namespace psychorientation
private double effort = 0;
private int orientation = 0;
private int id;
private List<Note> listNote = new List<Note>();
public Eleve(int id)
......@@ -53,10 +54,16 @@ namespace psychorientation
this.competence = competence;
}
public double getCompetence()
{
return this.competence;
}
public List<Note> getListNote()
{
return this.listNote;
}
public int getId()
{
return this.id;
......@@ -73,5 +80,15 @@ namespace psychorientation
{
return this.effort;
}
public void ajouterNote(string nom, double note)
{
Note n = new Note(nom, note, this.competence, this.effort);
this.listNote.Add(n);
}
}
}
......@@ -57,6 +57,7 @@
<Compile Include="InterfaceClasse.Designer.cs">
<DependentUpon>InterfaceClasse.cs</DependentUpon>
</Compile>
<Compile Include="GestionnaireEleve.cs" />
<Compile Include="InterfaceInfoEleve.cs">
<SubType>UserControl</SubType>
</Compile>
......@@ -69,6 +70,7 @@
<Compile Include="Message.Designer.cs">
<DependentUpon>Message.cs</DependentUpon>
</Compile>
<Compile Include="Note.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="InterfaceClasse.resx">
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment