Skip to content
Snippets Groups Projects
Commit 0a3f2c92 authored by TRITSCHBERGER ANTOINE's avatar TRITSCHBERGER ANTOINE
Browse files

Merge branch 'master' into 'master'

Lors d'un click sur un eleve qui est deja ouvert, le ferme

See merge request !38
parents ae22cd12 f02b7f1b
1 merge request!38Lors d'un click sur un eleve qui est deja ouvert, le ferme
...@@ -36,6 +36,9 @@ namespace psychorientation ...@@ -36,6 +36,9 @@ namespace psychorientation
private Label lblValEffort = new Label(); private Label lblValEffort = new Label();
private Label lblValCompetence = new Label(); private Label lblValCompetence = new Label();
private List<Eleve> listEleveOuvert = new List<Eleve>();
private List<InterfaceInfoCompletEleve> listInterfaceOuvert = new List<InterfaceInfoCompletEleve>();
private bool isRandom=true; private bool isRandom=true;
public InterfaceClasse(bool isRandom) public InterfaceClasse(bool isRandom)
...@@ -169,11 +172,38 @@ namespace psychorientation ...@@ -169,11 +172,38 @@ namespace psychorientation
tag = (Eleve)(sender as InterfaceInfoEleve).Tag; tag = (Eleve)(sender as InterfaceInfoEleve).Tag;
} }
int id = tag.GetId(); int id = tag.GetId();
InterfaceInfoCompletEleve iice = new InterfaceInfoCompletEleve(); InterfaceInfoCompletEleve iice = new InterfaceInfoCompletEleve();
iice.setParam(tag,imageEleve[id-1]); InterfaceInfoCompletEleve aSuppr=null;
iice.Show(); if (listEleveOuvert.Contains(tag))
{
listEleveOuvert.Remove(tag);
foreach(InterfaceInfoCompletEleve c2 in listInterfaceOuvert)
{
if (c2.getEleve() == tag)
{
c2.Close();
aSuppr = c2;
}
}
listInterfaceOuvert.Remove(aSuppr);
}
else
{
listInterfaceOuvert.Add(iice);
listEleveOuvert.Add(tag);
iice.setParam(tag, imageEleve[id - 1]);
iice.Show();
}
} }
private void ActionSuivante() private void ActionSuivante()
{ {
// Traite les actions à effectuer avant de passer au mois suivant. // Traite les actions à effectuer avant de passer au mois suivant.
......
...@@ -36,6 +36,10 @@ namespace psychorientation ...@@ -36,6 +36,10 @@ namespace psychorientation
pcbEleve.Image = pb; pcbEleve.Image = pb;
actualiser(); actualiser();
} }
public Eleve getEleve()
{
return this.eleve;
}
private void actualiser() private void actualiser()
{ {
......
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