Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
No results found
Show changes
Commits on Source (21)
Showing
with 377 additions and 192 deletions
...@@ -2,42 +2,42 @@ ...@@ -2,42 +2,42 @@
## GIT ## GIT
- Organisation - Organisation
- [ ] Les fichiers sources suivent une organisation et des règles de nommage clairement établie. - [x] Les fichiers sources suivent une organisation et des règles de nommage clairement établie.
- [ ] Les fichiers sources sont tous partagés et organisés. - [ ] Les fichiers sources sont tous partagés et organisés.
- [x] Certains fichiers sources ne sont pas partagés ou leur organisation laisse à désirer. - [ ] Certains fichiers sources ne sont pas partagés ou leur organisation laisse à désirer.
- Versioning - Versioning
- [ ] La granularité des commits est pertinente et les commits sont clairement et systématique renseignés. - [x] La granularité des commits est pertinente et les commits sont clairement et systématique renseignés.
- [ ] La granularité des commits n'est pas pertinente ou les commits ne sont pas clairement et systématiquement renseignés. - [ ] La granularité des commits n'est pas pertinente ou les commits ne sont pas clairement et systématiquement renseignés.
- [x] La granularité des commits n'est pas pertinente et les commits ne sont pas clairement et systématiquement renseignés. - [ ] La granularité des commits n'est pas pertinente et les commits ne sont pas clairement et systématiquement renseignés.
- Droits d'accès - Droits d'accès
- [ ] Le dépôt GIT est accessible à tous, et Julien Gossa est master. - [x] Le dépôt GIT est accessible à tous, et Julien Gossa est master.
- [ ] Julien Gossa est master sur le dépôt GIT. - [ ] Julien Gossa est master sur le dépôt GIT.
- [x] Julien Gossa n'est pas master sur le dépôt GIT. - [ ] Julien Gossa n'est pas master sur le dépôt GIT.
- README - README
- [ ] Le fichier présente le projet et a été régulièrement mis à jour pour tenir compte de son évolution. - [ ] Le fichier présente le projet et a été régulièrement mis à jour pour tenir compte de son évolution.
- [ ] Le fichier présente le projet. - [ ] Le fichier présente le projet.
- [x] Le fichier ne présente pas le projet. - [x] Le fichier ne présente pas le projet.
## Prototype ## Prototype
- Installation - Installation
- [ ] Le prototype s'installe sans effort. - [x] Le prototype s'installe sans effort.
- [ ] Le prototype s'installe en suivant une procédure. - [ ] Le prototype s'installe en suivant une procédure.
- [x] Le prototype ne s'installe pas. - [ ] Le prototype ne s'installe pas.
- Exécution - Exécution
- [ ] Le prototype s'exécute en cliquant sur une icône. - [x] Le prototype s'exécute en cliquant sur une icône.
- [ ] Le prototype s'exécute en suivant une procédure. - [ ] Le prototype s'exécute en suivant une procédure.
- [x] Le prototype ne s'exécute pas - [ ] Le prototype ne s'exécute pas
- Stabilité - Stabilité
- [ ] Le prototype est parfaitement stable - [x] Le prototype est parfaitement stable
- [ ] Le prototype est rarement instable - [ ] Le prototype est rarement instable
- [x] Le prototype est instable - [ ] Le prototype est instable
- Affordabilité - Affordabilité
- [ ] Toutes les instructions de jeu sont inclues dans le prototype sous forme d'un tutoriel. - [ ] Toutes les instructions de jeu sont inclues dans le prototype sous forme d'un tutoriel.
- [ ] Les instructions de jeu sont sous forme d'un manuel. - [ ] Les instructions de jeu sont sous forme d'un manuel.
- [x] Les instructions de jeu ne sont pas données. - [x] Les instructions de jeu ne sont pas données.
- Transmission du concept - Transmission du concept
- [ ] Le prototype permet de parfaitement transmettre le concept-cible au joueur. - [x] Le prototype permet de parfaitement transmettre le concept-cible au joueur.
- [ ] Le prototype permet de transmettre le concept-cible au joueur. - [ ] Le prototype permet de transmettre le concept-cible au joueur.
- [x] Le prototype ne permet pas de transmettre le concept-cible au joueur. - [ ] Le prototype ne permet pas de transmettre le concept-cible au joueur.
## Cahier des charges ## Cahier des charges
- Modèle de document - Modèle de document
- [ ] Le CdC respecte parfaitement le modèle de document. - [ ] Le CdC respecte parfaitement le modèle de document.
......
File added
File added
File added
File added
File added
File added
 
Microsoft Visual Studio Solution File, Format Version 12.00 Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15 # Visual Studio Version 16
VisualStudioVersion = 15.0.28307.757 VisualStudioVersion = 16.0.28917.181
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "psychorientation", "psychorientation\psychorientation.csproj", "{73981980-53AE-4EC6-80AB-471E136663DF}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Psychorientation", "psychorientation\Psychorientation.csproj", "{73981980-53AE-4EC6-80AB-471E136663DF}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace psychorientation
{
class Config
{
private static Config instance;
public double coeffEffortOral;
public double coeffCompetenceOral;
public double coeffCompetenceEcrit;
public double coeffEffortEcrit;
public static Config GetInstance()
{
if (Config.instance == null)
{
Config.instance = JsonConvert.DeserializeObject<Config>(File.ReadAllText("config.json"));
Console.WriteLine(Config.instance.coeffEffortOral);
return Config.instance;
}
else
{
return Config.instance;
}
}
public double GetCoeffEffortOral()
{
return this.coeffEffortOral;
}
public double GetCoeffCompetenceOral()
{
return this.coeffCompetenceOral;
}
public double GetCoeffCompetenceEcrit()
{
return this.coeffCompetenceEcrit;
}
public double GetCoeffEffortEcrit()
{
return this.coeffEffortEcrit;
}
}
}
...@@ -40,11 +40,14 @@ ...@@ -40,11 +40,14 @@
this.lblListeEleve = new System.Windows.Forms.Label(); this.lblListeEleve = new System.Windows.Forms.Label();
this.imgListPerso = new System.Windows.Forms.ImageList(this.components); this.imgListPerso = new System.Windows.Forms.ImageList(this.components);
this.pnlChoix = new System.Windows.Forms.Panel(); this.pnlChoix = new System.Windows.Forms.Panel();
this.lbl_barre_decisions = new System.Windows.Forms.Label();
this.lblCours = new System.Windows.Forms.Label(); this.lblCours = new System.Windows.Forms.Label();
this.lblNotation = new System.Windows.Forms.Label(); this.lblNotation = new System.Windows.Forms.Label();
this.pbProf = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.pb_action_suivante)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pb_action_suivante)).BeginInit();
this.pnlListeEleve.SuspendLayout(); this.pnlListeEleve.SuspendLayout();
this.pnlChoix.SuspendLayout(); this.pnlChoix.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pbProf)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
// pb_action_suivante // pb_action_suivante
...@@ -53,9 +56,9 @@ ...@@ -53,9 +56,9 @@
this.pb_action_suivante.BackgroundImage = global::psychorientation.Properties.Resources.passer; this.pb_action_suivante.BackgroundImage = global::psychorientation.Properties.Resources.passer;
this.pb_action_suivante.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; this.pb_action_suivante.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.pb_action_suivante.InitialImage = null; this.pb_action_suivante.InitialImage = null;
this.pb_action_suivante.Location = new System.Drawing.Point(1225, 651); this.pb_action_suivante.Location = new System.Drawing.Point(1156, 623);
this.pb_action_suivante.Name = "pb_action_suivante"; this.pb_action_suivante.Name = "pb_action_suivante";
this.pb_action_suivante.Size = new System.Drawing.Size(120, 120); this.pb_action_suivante.Size = new System.Drawing.Size(165, 148);
this.pb_action_suivante.TabIndex = 0; this.pb_action_suivante.TabIndex = 0;
this.pb_action_suivante.TabStop = false; this.pb_action_suivante.TabStop = false;
this.pb_action_suivante.Click += new System.EventHandler(this.Pb_action_suivante_Click); this.pb_action_suivante.Click += new System.EventHandler(this.Pb_action_suivante_Click);
...@@ -64,11 +67,11 @@ ...@@ -64,11 +67,11 @@
// //
this.lblDate.AutoSize = true; this.lblDate.AutoSize = true;
this.lblDate.BackColor = System.Drawing.Color.Transparent; this.lblDate.BackColor = System.Drawing.Color.Transparent;
this.lblDate.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblDate.Font = new System.Drawing.Font("Consolas", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblDate.ForeColor = System.Drawing.Color.White; this.lblDate.ForeColor = System.Drawing.Color.White;
this.lblDate.Location = new System.Drawing.Point(269, 171); this.lblDate.Location = new System.Drawing.Point(277, 171);
this.lblDate.Name = "lblDate"; this.lblDate.Name = "lblDate";
this.lblDate.Size = new System.Drawing.Size(129, 24); this.lblDate.Size = new System.Drawing.Size(140, 22);
this.lblDate.TabIndex = 2; this.lblDate.TabIndex = 2;
this.lblDate.Text = "Chargement..."; this.lblDate.Text = "Chargement...";
// //
...@@ -76,11 +79,11 @@ ...@@ -76,11 +79,11 @@
// //
this.lblClasse.AutoSize = true; this.lblClasse.AutoSize = true;
this.lblClasse.BackColor = System.Drawing.Color.Transparent; this.lblClasse.BackColor = System.Drawing.Color.Transparent;
this.lblClasse.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblClasse.Font = new System.Drawing.Font("Consolas", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblClasse.ForeColor = System.Drawing.Color.White; this.lblClasse.ForeColor = System.Drawing.Color.White;
this.lblClasse.Location = new System.Drawing.Point(943, 171); this.lblClasse.Location = new System.Drawing.Point(951, 171);
this.lblClasse.Name = "lblClasse"; this.lblClasse.Name = "lblClasse";
this.lblClasse.Size = new System.Drawing.Size(129, 24); this.lblClasse.Size = new System.Drawing.Size(140, 22);
this.lblClasse.TabIndex = 4; this.lblClasse.TabIndex = 4;
this.lblClasse.Text = "Chargement..."; this.lblClasse.Text = "Chargement...";
// //
...@@ -123,18 +126,21 @@ ...@@ -123,18 +126,21 @@
// pnlListeEleve // pnlListeEleve
// //
this.pnlListeEleve.AutoScroll = true; this.pnlListeEleve.AutoScroll = true;
this.pnlListeEleve.BackColor = System.Drawing.SystemColors.Control; this.pnlListeEleve.BackColor = System.Drawing.Color.NavajoWhite;
this.pnlListeEleve.BackgroundImage = global::psychorientation.Properties.Resources.paternFeuille;
this.pnlListeEleve.Controls.Add(this.lblListeEleve); this.pnlListeEleve.Controls.Add(this.lblListeEleve);
this.pnlListeEleve.Location = new System.Drawing.Point(0, -1); this.pnlListeEleve.Location = new System.Drawing.Point(0, -1);
this.pnlListeEleve.Name = "pnlListeEleve"; this.pnlListeEleve.Name = "pnlListeEleve";
this.pnlListeEleve.Size = new System.Drawing.Size(241, 783); this.pnlListeEleve.Size = new System.Drawing.Size(245, 783);
this.pnlListeEleve.TabIndex = 5; this.pnlListeEleve.TabIndex = 5;
// //
// lblListeEleve // lblListeEleve
// //
this.lblListeEleve.AutoSize = true; this.lblListeEleve.AutoSize = true;
this.lblListeEleve.BackColor = System.Drawing.Color.Transparent;
this.lblListeEleve.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblListeEleve.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblListeEleve.Location = new System.Drawing.Point(3, 0); this.lblListeEleve.ForeColor = System.Drawing.Color.Black;
this.lblListeEleve.Location = new System.Drawing.Point(10, 4);
this.lblListeEleve.Name = "lblListeEleve"; this.lblListeEleve.Name = "lblListeEleve";
this.lblListeEleve.Size = new System.Drawing.Size(217, 29); this.lblListeEleve.Size = new System.Drawing.Size(217, 29);
this.lblListeEleve.TabIndex = 0; this.lblListeEleve.TabIndex = 0;
...@@ -153,30 +159,58 @@ ...@@ -153,30 +159,58 @@
// //
// pnlChoix // pnlChoix
// //
this.pnlChoix.BackgroundImage = global::psychorientation.Properties.Resources.paternFeuille1;
this.pnlChoix.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.pnlChoix.Controls.Add(this.lbl_barre_decisions);
this.pnlChoix.Controls.Add(this.lblCours); this.pnlChoix.Controls.Add(this.lblCours);
this.pnlChoix.Controls.Add(this.lblNotation); this.pnlChoix.Controls.Add(this.lblNotation);
this.pnlChoix.Location = new System.Drawing.Point(1107, 99); this.pnlChoix.Location = new System.Drawing.Point(1107, 99);
this.pnlChoix.Name = "pnlChoix"; this.pnlChoix.Name = "pnlChoix";
this.pnlChoix.Size = new System.Drawing.Size(189, 528); this.pnlChoix.Size = new System.Drawing.Size(189, 323);
this.pnlChoix.TabIndex = 8; this.pnlChoix.TabIndex = 8;
// //
// lbl_barre_decisions
//
this.lbl_barre_decisions.BackColor = System.Drawing.Color.DimGray;
this.lbl_barre_decisions.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.lbl_barre_decisions.Location = new System.Drawing.Point(-1, 185);
this.lbl_barre_decisions.Name = "lbl_barre_decisions";
this.lbl_barre_decisions.Size = new System.Drawing.Size(189, 10);
this.lbl_barre_decisions.TabIndex = 2;
this.lbl_barre_decisions.Text = " ";
//
// lblCours // lblCours
// //
this.lblCours.BackColor = System.Drawing.Color.Transparent;
this.lblCours.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F); this.lblCours.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F);
this.lblCours.Location = new System.Drawing.Point(13, 282); this.lblCours.ForeColor = System.Drawing.Color.Black;
this.lblCours.Location = new System.Drawing.Point(13, 204);
this.lblCours.Name = "lblCours"; this.lblCours.Name = "lblCours";
this.lblCours.Size = new System.Drawing.Size(164, 59); this.lblCours.Size = new System.Drawing.Size(164, 59);
this.lblCours.TabIndex = 1; this.lblCours.TabIndex = 1;
this.lblCours.Text = "Type de cours visant à aider les eleves de competence :"; this.lblCours.Text = "Type de cours visant à aider les élèves de compétence :";
// //
// lblNotation // lblNotation
// //
this.lblNotation.BackColor = System.Drawing.Color.Transparent;
this.lblNotation.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F); this.lblNotation.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F);
this.lblNotation.Location = new System.Drawing.Point(13, 87); this.lblNotation.ForeColor = System.Drawing.Color.Black;
this.lblNotation.Location = new System.Drawing.Point(13, 20);
this.lblNotation.Name = "lblNotation"; this.lblNotation.Name = "lblNotation";
this.lblNotation.Size = new System.Drawing.Size(164, 59); this.lblNotation.Size = new System.Drawing.Size(164, 74);
this.lblNotation.TabIndex = 0; this.lblNotation.TabIndex = 0;
this.lblNotation.Text = "Type de notation visant à aider les eleves de competence :"; this.lblNotation.Text = "Coefficients de prise en compte de l\'effort et de la compétence pour noter :";
//
// pbProf
//
this.pbProf.BackColor = System.Drawing.Color.Transparent;
this.pbProf.Image = global::psychorientation.Properties.Resources.prof2;
this.pbProf.Location = new System.Drawing.Point(642, 234);
this.pbProf.Name = "pbProf";
this.pbProf.Size = new System.Drawing.Size(71, 93);
this.pbProf.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pbProf.TabIndex = 9;
this.pbProf.TabStop = false;
// //
// InterfaceClasse // InterfaceClasse
// //
...@@ -186,6 +220,7 @@ ...@@ -186,6 +220,7 @@
this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage"))); this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.ClientSize = new System.Drawing.Size(1357, 783); this.ClientSize = new System.Drawing.Size(1357, 783);
this.Controls.Add(this.pbProf);
this.Controls.Add(this.pnlChoix); this.Controls.Add(this.pnlChoix);
this.Controls.Add(this.lblEffort); this.Controls.Add(this.lblEffort);
this.Controls.Add(this.lblCompetence); this.Controls.Add(this.lblCompetence);
...@@ -203,10 +238,12 @@ ...@@ -203,10 +238,12 @@
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.InterfaceClasse_FormClosing); this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.InterfaceClasse_FormClosing);
this.Load += new System.EventHandler(this.Form1_Load); this.Load += new System.EventHandler(this.Form1_Load);
this.SizeChanged += new System.EventHandler(this.InterfaceClasse_SizeChanged); this.SizeChanged += new System.EventHandler(this.InterfaceClasse_SizeChanged);
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.InterfaceClasse_KeyDown);
((System.ComponentModel.ISupportInitialize)(this.pb_action_suivante)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pb_action_suivante)).EndInit();
this.pnlListeEleve.ResumeLayout(false); this.pnlListeEleve.ResumeLayout(false);
this.pnlListeEleve.PerformLayout(); this.pnlListeEleve.PerformLayout();
this.pnlChoix.ResumeLayout(false); this.pnlChoix.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pbProf)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
...@@ -228,6 +265,8 @@ ...@@ -228,6 +265,8 @@
private System.Windows.Forms.Panel pnlChoix; private System.Windows.Forms.Panel pnlChoix;
private System.Windows.Forms.Label lblNotation; private System.Windows.Forms.Label lblNotation;
private System.Windows.Forms.Label lblCours; private System.Windows.Forms.Label lblCours;
private System.Windows.Forms.Label lbl_barre_decisions;
private System.Windows.Forms.PictureBox pbProf;
} }
} }
...@@ -12,6 +12,12 @@ namespace psychorientation ...@@ -12,6 +12,12 @@ namespace psychorientation
{ {
public partial class InterfaceClasse : Form public partial class InterfaceClasse : Form
{ {
double effortInitial = 0.0;
double competenceInitial = 0.0;
double moyenneInitiale = 0.0;
private Random r = new Random(); private Random r = new Random();
private Libelle libelle = Libelle.GetInstance(); private Libelle libelle = Libelle.GetInstance();
private int moisActuel = 8; private int moisActuel = 8;
...@@ -20,9 +26,10 @@ namespace psychorientation ...@@ -20,9 +26,10 @@ namespace psychorientation
private int[] positionElevex = { 322, 571, 698, 951, 322, 571, 698, 951 }; private int[] positionElevex = { 322, 571, 698, 951, 322, 571, 698, 951 };
private int[] positionElevey = { 398, 398, 398, 398, 505, 505, 505, 505 }; private int[] positionElevey = { 398, 398, 398, 398, 505, 505, 505, 505 };
private Image[] imageEleve;
private string notaText = "Notation suivant les coefficients : "; private string notaText = "Coefficients de prise en compte de l'effort et de la compétence pour noter :";
private string coursText = "Type de cours visant à aider les eleves de competence : "; private string coursText = "Type de cours visant à aider les élèves de compétence : ";
private double valCours = 5.0; private double valCours = 5.0;
private double valNotation = 10.0; private double valNotation = 10.0;
...@@ -41,7 +48,8 @@ namespace psychorientation ...@@ -41,7 +48,8 @@ namespace psychorientation
{ {
AjouterEleveImage(); AjouterEleveImage();
GenererBase(); GenererBase();
TransmitKeyDown();
/* /*
Message mAccueil = new Message("Bonjour apprenti prof, vous allez apprendre à éduquer des joueurs !! ", "Début", TypeMessage.INFORMATION); Message mAccueil = new Message("Bonjour apprenti prof, vous allez apprendre à éduquer des joueurs !! ", "Début", TypeMessage.INFORMATION);
mAccueil.ShowDialog(); mAccueil.ShowDialog();
...@@ -52,27 +60,35 @@ namespace psychorientation ...@@ -52,27 +60,35 @@ namespace psychorientation
{ {
lblDate.Text = libelle.Mois(moisActuel % 12); lblDate.Text = libelle.Mois(moisActuel % 12);
lblClasse.Text = libelle.Niveau(anneeActuelle); lblClasse.Text = libelle.Niveau(anneeActuelle);
lblEffort.Text = "Effort de la classe : " + Math.Round(gestEleve.GetEffortClasse(), 1).ToString(); effortInitial = Math.Round(gestEleve.GetEffortClasse(), 1);
lblCompetence.Text = "Competence de la classe : " + Math.Round(gestEleve.GetCompetenceClasse(), 1).ToString(); competenceInitial = Math.Round(gestEleve.GetCompetenceClasse(), 1);
lblMoyenne.Text = "Moyenne de la classe : " + Math.Round(gestEleve.GetMoyenneClasse(), 1).ToString(); moyenneInitiale = Math.Round(gestEleve.GetMoyenneClasse(), 1);
lblEffort.Text = "Effort de la classe : " + effortInitial.ToString();
lblCompetence.Text = "Competence de la classe : " + competenceInitial.ToString();
lblMoyenne.Text = "Moyenne de la classe : " + moyenneInitiale.ToString();
Libelle lib = new Libelle(); Libelle lib = new Libelle();
int y = 20; int y = 40;
foreach (Eleve eleve in gestEleve.GetListeEleves()) foreach (Eleve eleve in gestEleve.GetListeEleves())
{ {
InterfaceInfoEleve ii = new InterfaceInfoEleve(); InterfaceInfoEleve ii = new InterfaceInfoEleve();
ii.setParam(eleve); ii.setParam(eleve);
ii.Location = new Point(0, y); ii.Tag = eleve;
ii.Location = new Point(6, y);
ii.Click += new System.EventHandler(PbOuvrirInfo);
pnlListeEleve.Controls.Add(ii); pnlListeEleve.Controls.Add(ii);
y += 220; y += 220;
} }
TrackBar tbNota = new TrackBar(); TrackBar tbNota = new TrackBar();
tbNota.Location = new System.Drawing.Point(0, lblNotation.Location.Y + lblNotation.Size.Height); tbNota.Location = new System.Drawing.Point(0, lblNotation.Location.Y + lblNotation.Size.Height);
tbNota.Size = new System.Drawing.Size(184, 45); tbNota.Size = new System.Drawing.Size(184, 45);
tbNota.Maximum = 20; tbNota.Maximum = 20;
tbNota.BackColor = System.Drawing.Color.Tan;
tbNota.Value = 10; tbNota.Value = 10;
tbNota.SmallChange = 1;
tbNota.LargeChange = 1;
tbNota.TickStyle = TickStyle.TopLeft;
tbNota.Scroll += new System.EventHandler(tbNota_Scroll); tbNota.Scroll += new System.EventHandler(tbNota_Scroll);
pnlChoix.Controls.Add(tbNota); pnlChoix.Controls.Add(tbNota);
lblNotation.Text = notaText; lblNotation.Text = notaText;
...@@ -83,13 +99,18 @@ namespace psychorientation ...@@ -83,13 +99,18 @@ namespace psychorientation
lblValCompetence.Location = new Point(1, 5 + tbNota.Location.Y + tbNota.Size.Height); lblValCompetence.Location = new Point(1, 5 + tbNota.Location.Y + tbNota.Size.Height);
lblValEffort.Text = lblValEffort.Tag + ((20 - tbNota.Value) / 10.0).ToString(); lblValEffort.Text = lblValEffort.Tag + ((20 - tbNota.Value) / 10.0).ToString();
lblValCompetence.Text = lblValCompetence.Tag + (tbNota.Value / 10.0).ToString(); lblValCompetence.Text = lblValCompetence.Tag + (tbNota.Value / 10.0).ToString();
lblValCompetence.BackColor= System.Drawing.Color.Transparent;
lblValEffort.BackColor= System.Drawing.Color.Transparent;
pnlChoix.Controls.Add(lblValEffort); pnlChoix.Controls.Add(lblValEffort);
pnlChoix.Controls.Add(lblValCompetence); pnlChoix.Controls.Add(lblValCompetence);
TrackBar tbCours = new TrackBar(); TrackBar tbCours = new TrackBar();
tbCours.BackColor= System.Drawing.Color.Tan;
tbCours.Location = new System.Drawing.Point(0, 10 + lblCours.Location.Y + lblCours.Size.Height); tbCours.Location = new System.Drawing.Point(0, 10 + lblCours.Location.Y + lblCours.Size.Height);
tbCours.Size = new System.Drawing.Size(184, 45); tbCours.Size = new System.Drawing.Size(184, 45);
tbCours.Value = 5; tbCours.Value = 5;
tbCours.SmallChange = 1;
tbCours.LargeChange = 1;
tbCours.Scroll += new System.EventHandler(tbCours_Scroll); tbCours.Scroll += new System.EventHandler(tbCours_Scroll);
pnlChoix.Controls.Add(tbCours); pnlChoix.Controls.Add(tbCours);
lblCours.Text = coursText + tbCours.Value.ToString(); lblCours.Text = coursText + tbCours.Value.ToString();
...@@ -97,6 +118,7 @@ namespace psychorientation ...@@ -97,6 +118,7 @@ namespace psychorientation
private void AjouterPictureboxEleve() private void AjouterPictureboxEleve()
{ {
imageEleve = new Image[gestEleve.GetListeEleves().Count];
for (int i = 0; i < gestEleve.GetListeEleves().Count; i++) for (int i = 0; i < gestEleve.GetListeEleves().Count; i++)
{ {
PictureBox pbEleve = new PictureBox(); PictureBox pbEleve = new PictureBox();
...@@ -110,7 +132,7 @@ namespace psychorientation ...@@ -110,7 +132,7 @@ namespace psychorientation
pbEleve.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; pbEleve.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
pbEleve.Top = positionElevey[i]; pbEleve.Top = positionElevey[i];
pbEleve.Click += new System.EventHandler(PbOuvrirInfo); pbEleve.Click += new System.EventHandler(PbOuvrirInfo);
imageEleve[i] = pbEleve.Image;
this.Controls.Add(pbEleve); this.Controls.Add(pbEleve);
} }
} }
...@@ -119,7 +141,7 @@ namespace psychorientation ...@@ -119,7 +141,7 @@ namespace psychorientation
{ {
if (isRandom) if (isRandom)
{ {
for (int i = 1; i < r.Next(3,9); i++) for (int i = 1; i < r.Next(6,9); i++)
{ {
gestEleve.AjouterEleve(new Eleve(i)); gestEleve.AjouterEleve(new Eleve(i));
} }
...@@ -131,19 +153,28 @@ namespace psychorientation ...@@ -131,19 +153,28 @@ namespace psychorientation
gestEleve.AjouterEleve(new Eleve(3,0,9.0,1.0,0)); gestEleve.AjouterEleve(new Eleve(3,0,9.0,1.0,0));
} }
AjouterPictureboxEleve(); AjouterPictureboxEleve();
gestEleve.FaireControle("Controle " + lblClasse.Text + " " + lblDate.Text, valNotation / 10.0); gestEleve.FaireControle("Controle " + lblClasse.Text + " " + lblDate.Text, valNotation / 10.0);
} }
private void PbOuvrirInfo(object sender, EventArgs e) private void PbOuvrirInfo(object sender, EventArgs e)
{ {
PictureBox pb = (PictureBox)sender; Eleve tag;
Eleve tag = (Eleve)pb.Tag; if (sender is PictureBox)
{
tag = (Eleve)(sender as PictureBox).Tag;
}
else
{
tag = (Eleve)(sender as InterfaceInfoEleve).Tag;
}
int id = tag.GetId();
InterfaceInfoCompletEleve iice = new InterfaceInfoCompletEleve(); InterfaceInfoCompletEleve iice = new InterfaceInfoCompletEleve();
iice.setParam(tag); iice.setParam(tag,imageEleve[id-1]);
iice.Show(); iice.Show();
} }
private void Pb_action_suivante_Click(object sender, EventArgs e) private void ActionSuivante()
{ {
// Traite les actions à effectuer avant de passer au mois suivant. // Traite les actions à effectuer avant de passer au mois suivant.
...@@ -153,15 +184,14 @@ namespace psychorientation ...@@ -153,15 +184,14 @@ namespace psychorientation
} }
gestEleve.FaireControle("Controle " + lblClasse.Text + " " + lblDate.Text, valNotation / 10.0); gestEleve.FaireControle("Controle " + lblClasse.Text + " " + lblDate.Text, valNotation / 10.0);
lblEffort.Text = "Effort de la classe : " + Math.Round(gestEleve.GetEffortClasse(), 2).ToString();
lblEffort.Text = "Effort de la classe : " + Math.Round(gestEleve.GetEffortClasse(), 1).ToString(); lblCompetence.Text = "Competence de la classe : " + Math.Round(gestEleve.GetCompetenceClasse(), 2).ToString();
lblCompetence.Text = "Competence de la classe : " + Math.Round(gestEleve.GetCompetenceClasse(), 1).ToString(); lblMoyenne.Text = "Moyenne de la classe : " + Math.Round(gestEleve.GetMoyenneClasse(), 2).ToString();
lblMoyenne.Text = "Moyenne de la classe : " + Math.Round(gestEleve.GetMoyenneClasse(), 1).ToString();
ActualiserEleveCoter(); ActualiserEleveCoter();
// Passe au mois suivant. // Passe au mois suivant.
moisActuel++; moisActuel++;
switch(moisActuel) switch (moisActuel)
{ {
case 17: // Fin de la 1ère année : Début Juin. case 17: // Fin de la 1ère année : Début Juin.
moisActuel = 20; moisActuel = 20;
...@@ -173,15 +203,28 @@ namespace psychorientation ...@@ -173,15 +203,28 @@ namespace psychorientation
break; break;
case 42: // Fin de la 3ème année : Debut Juillet. case 42: // Fin de la 3ème année : Debut Juillet.
// Fin de la partie. // Fin de la partie.
Message m_fin = new Message( double moyenneFinale = gestEleve.GetMoyenneClasse();
"Vous avez fini la phase bêta de ce jeu !\n" + double effortFinal = gestEleve.GetEffortClasse();
"Bravo à vous et n'hésitez pas à essayer à nouveau pour " + double competenceFinal = gestEleve.GetCompetenceClasse();
"améliorer votre compréhension du monde extérieur.",
"Félicitations", Message m_fin = new Message(
TypeMessage.INFORMATION "Vous avez fini la phase bêta de ce jeu !\n" +
"Bravo à vous et n'hésitez pas à essayer à nouveau pour " +
"améliorer votre compréhension du monde extérieur.\n",
"Félicitations",
TypeMessage.RESULTAT
);
m_fin.setParamRes(
effortInitial,
competenceInitial,
moyenneInitiale,
effortFinal,
competenceFinal,
moyenneFinale
); );
m_fin.ShowDialog(); m_fin.ShowDialog();
Close(); UntransmitKeyDown();
pb_action_suivante.Click -= new System.EventHandler(Pb_action_suivante_Click);
break; break;
} }
...@@ -190,7 +233,12 @@ namespace psychorientation ...@@ -190,7 +233,12 @@ namespace psychorientation
// Cours particuliers. // Cours particuliers.
lblDate.Text = libelle.Mois(moisActuel % 12); lblDate.Text = libelle.Mois(moisActuel % 12);
lblClasse.Text= libelle.Niveau(anneeActuelle); lblClasse.Text = libelle.Niveau(anneeActuelle);
}
private void Pb_action_suivante_Click(object sender, EventArgs e)
{
ActionSuivante();
} }
private void Pb_liste_eleves_Click(object sender, EventArgs e) private void Pb_liste_eleves_Click(object sender, EventArgs e)
...@@ -217,13 +265,6 @@ namespace psychorientation ...@@ -217,13 +265,6 @@ namespace psychorientation
PictureBox pb1 = pb_action_suivante; PictureBox pb1 = pb_action_suivante;
pb1.Location = new Point(Size.Width - pb1.Width - 32, Size.Height - pb1.Height - 32); pb1.Location = new Point(Size.Width - pb1.Width - 32, Size.Height - pb1.Height - 32);
} }
/*
if (MessageBox.Show("Souhaitez-vous quitter le jeu ?\nVous perdrez alors votre progression dans la partie en cours.",
"Confirmation de fermeture", MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button2) == System.Windows.Forms.DialogResult.Yes)
{
Close();
}
*/
private void tbNota_Scroll(object sender, EventArgs e) private void tbNota_Scroll(object sender, EventArgs e)
{ {
...@@ -245,10 +286,58 @@ namespace psychorientation ...@@ -245,10 +286,58 @@ namespace psychorientation
{ {
if (MessageBox.Show("Souhaitez-vous quitter le jeu ?\nVous perdrez alors votre progression dans la partie en cours.", if (MessageBox.Show("Souhaitez-vous quitter le jeu ?\nVous perdrez alors votre progression dans la partie en cours.",
"Confirmation de fermeture", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No) "Confirmation de fermeture",
MessageBoxButtons.YesNo,
MessageBoxIcon.Warning,
MessageBoxDefaultButton.Button2
)
== DialogResult.No)
{ {
e.Cancel = true; e.Cancel = true;
} }
} }
private void TransmitKeyDown()
{
foreach (Control c in this.Controls)
{
if (c is Panel)
{
foreach (Control c2 in (c as Panel).Controls)
{
c2.KeyDown += new System.Windows.Forms.KeyEventHandler(InterfaceClasse_KeyDown);
}
}
c.KeyDown += new System.Windows.Forms.KeyEventHandler(InterfaceClasse_KeyDown);
}
}
private void UntransmitKeyDown()
{
foreach (Control c in this.Controls)
{
if (c is Panel)
{
foreach (Control c2 in (c as Panel).Controls)
{
c2.KeyDown -= new System.Windows.Forms.KeyEventHandler(InterfaceClasse_KeyDown);
}
}
c.KeyDown -= new System.Windows.Forms.KeyEventHandler(InterfaceClasse_KeyDown);
}
}
private void InterfaceClasse_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Escape)
{
Close();
}
if (e.KeyCode == Keys.Enter)
{
ActionSuivante();
}
}
} }
} }
...@@ -125,7 +125,7 @@ ...@@ -125,7 +125,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACM ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACM
mgEAAk1TRnQBSQFMAgEBBgEAATABAAEwAQAByAEAAcgBAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo mgEAAk1TRnQBSQFMAgEBBgEAAYABAAGAAQAByAEAAcgBAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABIAEDAgABkAEBAgABAQEAAQgGAAHiAQQXAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEA AwABIAEDAgABkAEBAgABAQEAAQgGAAHiAQQXAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEA
AcAB3AHAAQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEA AcAB3AHAAQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEA
A0IBAAM5AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIA A0IBAAM5AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIA
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
// //
this.lblNomEleve.AutoSize = true; this.lblNomEleve.AutoSize = true;
this.lblNomEleve.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F); this.lblNomEleve.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F);
this.lblNomEleve.Location = new System.Drawing.Point(253, 14); this.lblNomEleve.Location = new System.Drawing.Point(125, 17);
this.lblNomEleve.Name = "lblNomEleve"; this.lblNomEleve.Name = "lblNomEleve";
this.lblNomEleve.Size = new System.Drawing.Size(118, 24); this.lblNomEleve.Size = new System.Drawing.Size(118, 24);
this.lblNomEleve.TabIndex = 0; this.lblNomEleve.TabIndex = 0;
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
// //
this.lblClasse.AutoSize = true; this.lblClasse.AutoSize = true;
this.lblClasse.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F); this.lblClasse.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F);
this.lblClasse.Location = new System.Drawing.Point(254, 71); this.lblClasse.Location = new System.Drawing.Point(126, 74);
this.lblClasse.Name = "lblClasse"; this.lblClasse.Name = "lblClasse";
this.lblClasse.Size = new System.Drawing.Size(70, 18); this.lblClasse.Size = new System.Drawing.Size(70, 18);
this.lblClasse.TabIndex = 2; this.lblClasse.TabIndex = 2;
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
// //
this.lblEffort.AutoSize = true; this.lblEffort.AutoSize = true;
this.lblEffort.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F); this.lblEffort.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F);
this.lblEffort.Location = new System.Drawing.Point(225, 126); this.lblEffort.Location = new System.Drawing.Point(97, 129);
this.lblEffort.Name = "lblEffort"; this.lblEffort.Name = "lblEffort";
this.lblEffort.Size = new System.Drawing.Size(44, 15); this.lblEffort.Size = new System.Drawing.Size(44, 15);
this.lblEffort.TabIndex = 3; this.lblEffort.TabIndex = 3;
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
// //
this.lblCompetence.AutoSize = true; this.lblCompetence.AutoSize = true;
this.lblCompetence.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F); this.lblCompetence.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F);
this.lblCompetence.Location = new System.Drawing.Point(183, 160); this.lblCompetence.Location = new System.Drawing.Point(55, 163);
this.lblCompetence.Name = "lblCompetence"; this.lblCompetence.Name = "lblCompetence";
this.lblCompetence.Size = new System.Drawing.Size(86, 15); this.lblCompetence.Size = new System.Drawing.Size(86, 15);
this.lblCompetence.TabIndex = 4; this.lblCompetence.TabIndex = 4;
...@@ -90,17 +90,17 @@ ...@@ -90,17 +90,17 @@
// //
this.lblMoyenne.AutoSize = true; this.lblMoyenne.AutoSize = true;
this.lblMoyenne.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F); this.lblMoyenne.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F);
this.lblMoyenne.Location = new System.Drawing.Point(186, 195); this.lblMoyenne.Location = new System.Drawing.Point(22, 198);
this.lblMoyenne.Name = "lblMoyenne"; this.lblMoyenne.Name = "lblMoyenne";
this.lblMoyenne.Size = new System.Drawing.Size(112, 15); this.lblMoyenne.Size = new System.Drawing.Size(119, 15);
this.lblMoyenne.TabIndex = 10; this.lblMoyenne.TabIndex = 10;
this.lblMoyenne.Text = "Moyenne général : "; this.lblMoyenne.Text = "Moyenne générale : ";
// //
// lblNiveau // lblNiveau
// //
this.lblNiveau.AutoSize = true; this.lblNiveau.AutoSize = true;
this.lblNiveau.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F); this.lblNiveau.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F);
this.lblNiveau.Location = new System.Drawing.Point(330, 71); this.lblNiveau.Location = new System.Drawing.Point(202, 74);
this.lblNiveau.Name = "lblNiveau"; this.lblNiveau.Name = "lblNiveau";
this.lblNiveau.Size = new System.Drawing.Size(67, 18); this.lblNiveau.Size = new System.Drawing.Size(67, 18);
this.lblNiveau.TabIndex = 11; this.lblNiveau.TabIndex = 11;
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
// //
this.panel1.BackColor = System.Drawing.Color.Silver; this.panel1.BackColor = System.Drawing.Color.Silver;
this.panel1.Controls.Add(this.pnlEffort); this.panel1.Controls.Add(this.pnlEffort);
this.panel1.Location = new System.Drawing.Point(320, 121); this.panel1.Location = new System.Drawing.Point(192, 124);
this.panel1.Name = "panel1"; this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(139, 26); this.panel1.Size = new System.Drawing.Size(139, 26);
this.panel1.TabIndex = 12; this.panel1.TabIndex = 12;
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
// //
this.panel2.BackColor = System.Drawing.Color.Silver; this.panel2.BackColor = System.Drawing.Color.Silver;
this.panel2.Controls.Add(this.pnlCompetence); this.panel2.Controls.Add(this.pnlCompetence);
this.panel2.Location = new System.Drawing.Point(320, 156); this.panel2.Location = new System.Drawing.Point(192, 159);
this.panel2.Name = "panel2"; this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(139, 26); this.panel2.Size = new System.Drawing.Size(139, 26);
this.panel2.TabIndex = 13; this.panel2.TabIndex = 13;
...@@ -145,7 +145,7 @@ ...@@ -145,7 +145,7 @@
// //
this.lblMoyenneNote.AutoSize = true; this.lblMoyenneNote.AutoSize = true;
this.lblMoyenneNote.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F); this.lblMoyenneNote.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F);
this.lblMoyenneNote.Location = new System.Drawing.Point(317, 195); this.lblMoyenneNote.Location = new System.Drawing.Point(189, 198);
this.lblMoyenneNote.Name = "lblMoyenneNote"; this.lblMoyenneNote.Name = "lblMoyenneNote";
this.lblMoyenneNote.Size = new System.Drawing.Size(97, 15); this.lblMoyenneNote.Size = new System.Drawing.Size(97, 15);
this.lblMoyenneNote.TabIndex = 14; this.lblMoyenneNote.TabIndex = 14;
...@@ -153,25 +153,26 @@ ...@@ -153,25 +153,26 @@
// //
// pcbEleve // pcbEleve
// //
this.pcbEleve.Location = new System.Drawing.Point(32, 24); this.pcbEleve.Location = new System.Drawing.Point(25, 12);
this.pcbEleve.Name = "pcbEleve"; this.pcbEleve.Name = "pcbEleve";
this.pcbEleve.Size = new System.Drawing.Size(109, 97); this.pcbEleve.Size = new System.Drawing.Size(78, 106);
this.pcbEleve.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pcbEleve.TabIndex = 15; this.pcbEleve.TabIndex = 15;
this.pcbEleve.TabStop = false; this.pcbEleve.TabStop = false;
// //
// pnlNote // pnlNote
// //
this.pnlNote.AutoScroll = true; this.pnlNote.AutoScroll = true;
this.pnlNote.Location = new System.Drawing.Point(85, 243); this.pnlNote.Location = new System.Drawing.Point(12, 253);
this.pnlNote.Name = "pnlNote"; this.pnlNote.Name = "pnlNote";
this.pnlNote.Size = new System.Drawing.Size(448, 134); this.pnlNote.Size = new System.Drawing.Size(328, 143);
this.pnlNote.TabIndex = 16; this.pnlNote.TabIndex = 16;
// //
// InterfaceInfoCompletEleve // InterfaceInfoCompletEleve
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(579, 408); this.ClientSize = new System.Drawing.Size(351, 408);
this.Controls.Add(this.pnlNote); this.Controls.Add(this.pnlNote);
this.Controls.Add(this.pcbEleve); this.Controls.Add(this.pcbEleve);
this.Controls.Add(this.lblMoyenneNote); this.Controls.Add(this.lblMoyenneNote);
...@@ -183,10 +184,13 @@ ...@@ -183,10 +184,13 @@
this.Controls.Add(this.lblEffort); this.Controls.Add(this.lblEffort);
this.Controls.Add(this.lblClasse); this.Controls.Add(this.lblClasse);
this.Controls.Add(this.lblNomEleve); this.Controls.Add(this.lblNomEleve);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.MaximizeBox = false;
this.Name = "InterfaceInfoCompletEleve"; this.Name = "InterfaceInfoCompletEleve";
this.Text = "InterfaceInfoCompletEleve"; this.Text = "InterfaceInfoCompletEleve";
this.TopMost = true; this.TopMost = true;
this.Load += new System.EventHandler(this.InterfaceInfoCompletEleve_Load); this.Load += new System.EventHandler(this.InterfaceInfoCompletEleve_Load);
this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.InterfaceInfoCompletEleve_KeyPress);
this.panel1.ResumeLayout(false); this.panel1.ResumeLayout(false);
this.panel2.ResumeLayout(false); this.panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pcbEleve)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pcbEleve)).EndInit();
......
...@@ -29,16 +29,20 @@ namespace psychorientation ...@@ -29,16 +29,20 @@ namespace psychorientation
} }
public void setParam(Eleve el) public void setParam(Eleve el,Image pb)
{ {
this.eleve = el; this.eleve = el;
pcbEleve.Image = pb;
actualiser(); actualiser();
} }
private void actualiser() private void actualiser()
{ {
lblEffort.Text = "Effort : " + Math.Round(eleve.GetEffort(),1);
lblCompetence.Text = "Compétence : " + Math.Round(eleve.GetCompetence(),1);
Libelle lib = new Libelle(); Libelle lib = new Libelle();
string nom = "Eleve n°" + eleve.GetId(); string nom = "Élève n°" + eleve.GetId();
this.Text = nom; this.Text = nom;
lblNomEleve.Text = nom; lblNomEleve.Text = nom;
lblNiveau.Text = lib.Niveau(eleve.GetClasse()); lblNiveau.Text = lib.Niveau(eleve.GetClasse());
...@@ -57,6 +61,8 @@ namespace psychorientation ...@@ -57,6 +61,8 @@ namespace psychorientation
InitNote(); InitNote();
} }
private void MajPanel(Panel p, double valeur) private void MajPanel(Panel p, double valeur)
{ {
int val = (int)valeur; int val = (int)valeur;
...@@ -93,7 +99,7 @@ namespace psychorientation ...@@ -93,7 +99,7 @@ namespace psychorientation
tlp.Controls.Add(CreerLabel(Math.Round(note.GetEffort(), 2).ToString()), 3, i); tlp.Controls.Add(CreerLabel(Math.Round(note.GetEffort(), 2).ToString()), 3, i);
} }
tlp.Size = new System.Drawing.Size(413, largeurLigne* tlp.RowCount); tlp.Size = new System.Drawing.Size(320, largeurLigne * tlp.RowCount + 10);
tlp.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single; tlp.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
pnlNote.Controls.Add(tlp); pnlNote.Controls.Add(tlp);
} }
...@@ -105,6 +111,12 @@ namespace psychorientation ...@@ -105,6 +111,12 @@ namespace psychorientation
return lbl; return lbl;
} }
private void InterfaceInfoCompletEleve_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == 27) // Echap
{
Close();
}
}
} }
} }
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
this.lblEleve.Size = new System.Drawing.Size(99, 33); this.lblEleve.Size = new System.Drawing.Size(99, 33);
this.lblEleve.TabIndex = 0; this.lblEleve.TabIndex = 0;
this.lblEleve.Text = "label1"; this.lblEleve.Text = "label1";
this.lblEleve.Click += new System.EventHandler(this.InterfaceInfoEleve_Click);
// //
// label1 // label1
// //
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
this.label1.Size = new System.Drawing.Size(50, 13); this.label1.Size = new System.Drawing.Size(50, 13);
this.label1.TabIndex = 1; this.label1.TabIndex = 1;
this.label1.Text = "Classe : "; this.label1.Text = "Classe : ";
this.label1.Click += new System.EventHandler(this.InterfaceInfoEleve_Click);
// //
// label2 // label2
// //
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
this.label2.Size = new System.Drawing.Size(41, 13); this.label2.Size = new System.Drawing.Size(41, 13);
this.label2.TabIndex = 2; this.label2.TabIndex = 2;
this.label2.Text = "Effort : "; this.label2.Text = "Effort : ";
this.label2.Click += new System.EventHandler(this.InterfaceInfoEleve_Click);
// //
// label3 // label3
// //
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
this.label3.Size = new System.Drawing.Size(76, 13); this.label3.Size = new System.Drawing.Size(76, 13);
this.label3.TabIndex = 3; this.label3.TabIndex = 3;
this.label3.Text = "Compétence : "; this.label3.Text = "Compétence : ";
this.label3.Click += new System.EventHandler(this.InterfaceInfoEleve_Click);
// //
// lblClasse // lblClasse
// //
...@@ -94,18 +94,17 @@ ...@@ -94,18 +94,17 @@
this.lblClasse.Size = new System.Drawing.Size(35, 13); this.lblClasse.Size = new System.Drawing.Size(35, 13);
this.lblClasse.TabIndex = 4; this.lblClasse.TabIndex = 4;
this.lblClasse.Text = "label4"; this.lblClasse.Text = "label4";
this.lblClasse.Click += new System.EventHandler(this.InterfaceInfoEleve_Click);
// //
// panel1 // panel1
// //
this.panel1.BackColor = System.Drawing.Color.Silver; this.panel1.BackColor = System.Drawing.Color.Silver;
this.panel1.Controls.Add(this.pnlEffort); this.panel1.Controls.Add(this.pnlEffort);
this.panel1.Controls.Add(this.lblEffort);
this.panel1.Location = new System.Drawing.Point(110, 95); this.panel1.Location = new System.Drawing.Point(110, 95);
this.panel1.Name = "panel1"; this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(92, 26); this.panel1.Size = new System.Drawing.Size(92, 26);
this.panel1.TabIndex = 5; this.panel1.TabIndex = 5;
this.panel1.Click += new System.EventHandler(this.InterfaceInfoEleve_Click);
// //
// pnlEffort // pnlEffort
// //
...@@ -114,7 +113,15 @@ ...@@ -114,7 +113,15 @@
this.pnlEffort.Name = "pnlEffort"; this.pnlEffort.Name = "pnlEffort";
this.pnlEffort.Size = new System.Drawing.Size(84, 18); this.pnlEffort.Size = new System.Drawing.Size(84, 18);
this.pnlEffort.TabIndex = 6; this.pnlEffort.TabIndex = 6;
this.pnlEffort.Click += new System.EventHandler(this.InterfaceInfoEleve_Click);
//
// lblEffort
//
this.lblEffort.AutoSize = true;
this.lblEffort.Location = new System.Drawing.Point(53, 104);
this.lblEffort.Name = "lblEffort";
this.lblEffort.Size = new System.Drawing.Size(0, 13);
this.lblEffort.TabIndex = 7;
// //
// panel2 // panel2
// //
...@@ -124,7 +131,7 @@ ...@@ -124,7 +131,7 @@
this.panel2.Name = "panel2"; this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(92, 26); this.panel2.Size = new System.Drawing.Size(92, 26);
this.panel2.TabIndex = 6; this.panel2.TabIndex = 6;
this.panel2.Click += new System.EventHandler(this.InterfaceInfoEleve_Click);
// //
// pnlCompetence // pnlCompetence
// //
...@@ -133,15 +140,7 @@ ...@@ -133,15 +140,7 @@
this.pnlCompetence.Name = "pnlCompetence"; this.pnlCompetence.Name = "pnlCompetence";
this.pnlCompetence.Size = new System.Drawing.Size(58, 18); this.pnlCompetence.Size = new System.Drawing.Size(58, 18);
this.pnlCompetence.TabIndex = 7; this.pnlCompetence.TabIndex = 7;
this.pnlCompetence.Click += new System.EventHandler(this.InterfaceInfoEleve_Click);
//
// lblEffort
//
this.lblEffort.AutoSize = true;
this.lblEffort.Location = new System.Drawing.Point(53, 104);
this.lblEffort.Name = "lblEffort";
this.lblEffort.Size = new System.Drawing.Size(0, 13);
this.lblEffort.TabIndex = 7;
// //
// lblCompetence // lblCompetence
// //
...@@ -159,7 +158,7 @@ ...@@ -159,7 +158,7 @@
this.label4.Size = new System.Drawing.Size(80, 13); this.label4.Size = new System.Drawing.Size(80, 13);
this.label4.TabIndex = 9; this.label4.TabIndex = 9;
this.label4.Text = "Dernière note : "; this.label4.Text = "Dernière note : ";
this.label4.Click += new System.EventHandler(this.InterfaceInfoEleve_Click);
// //
// lblMoyenne // lblMoyenne
// //
...@@ -169,13 +168,14 @@ ...@@ -169,13 +168,14 @@
this.lblMoyenne.Size = new System.Drawing.Size(35, 13); this.lblMoyenne.Size = new System.Drawing.Size(35, 13);
this.lblMoyenne.TabIndex = 10; this.lblMoyenne.TabIndex = 10;
this.lblMoyenne.Text = "label5"; this.lblMoyenne.Text = "label5";
this.lblMoyenne.Click += new System.EventHandler(this.InterfaceInfoEleve_Click);
// //
// InterfaceInfoEleve // InterfaceInfoEleve
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White; this.BackColor = System.Drawing.Color.White;
this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.Controls.Add(this.lblMoyenne); this.Controls.Add(this.lblMoyenne);
this.Controls.Add(this.label4); this.Controls.Add(this.label4);
this.Controls.Add(this.lblCompetence); this.Controls.Add(this.lblCompetence);
...@@ -188,10 +188,9 @@ ...@@ -188,10 +188,9 @@
this.Controls.Add(this.label1); this.Controls.Add(this.label1);
this.Controls.Add(this.lblEleve); this.Controls.Add(this.lblEleve);
this.Name = "InterfaceInfoEleve"; this.Name = "InterfaceInfoEleve";
this.Size = new System.Drawing.Size(216, 216); this.Size = new System.Drawing.Size(214, 214);
this.Click += new System.EventHandler(this.InterfaceInfoEleve_Click);
this.panel1.ResumeLayout(false); this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel2.ResumeLayout(false); this.panel2.ResumeLayout(false);
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
......
...@@ -27,7 +27,7 @@ namespace psychorientation ...@@ -27,7 +27,7 @@ namespace psychorientation
public void actualiser() public void actualiser()
{ {
Libelle lib = new Libelle(); Libelle lib = new Libelle();
lblEleve.Text = "Eleve n°" + eleve.GetId(); lblEleve.Text = "Élève n°" + eleve.GetId();
lblClasse.Text = lib.Niveau(eleve.GetClasse()); lblClasse.Text = lib.Niveau(eleve.GetClasse());
lblEffort.Text = Math.Round(eleve.GetEffort(), 2).ToString() ; lblEffort.Text = Math.Round(eleve.GetEffort(), 2).ToString() ;
lblCompetence.Text = Math.Round(eleve.GetCompetence(), 2).ToString(); lblCompetence.Text = Math.Round(eleve.GetCompetence(), 2).ToString();
...@@ -42,12 +42,5 @@ namespace psychorientation ...@@ -42,12 +42,5 @@ namespace psychorientation
int val = (int)valeur; int val = (int)valeur;
p.Size = new Size(val * 84 / 10, p.Height); p.Size = new Size(val * 84 / 10, p.Height);
} }
private void InterfaceInfoEleve_Click(object sender, EventArgs e)
{
InterfaceInfoCompletEleve iice = new InterfaceInfoCompletEleve();
iice.setParam(this.eleve);
iice.Show();
}
} }
} }
...@@ -30,40 +30,63 @@ ...@@ -30,40 +30,63 @@
{ {
this.button1 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button();
this.lbl_ou = new System.Windows.Forms.Label();
this.SuspendLayout(); this.SuspendLayout();
// //
// button1 // button1
// //
this.button1.Location = new System.Drawing.Point(102, 207); this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button1.Location = new System.Drawing.Point(77, 31);
this.button1.Name = "button1"; this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(178, 84); this.button1.Size = new System.Drawing.Size(242, 84);
this.button1.TabIndex = 0; this.button1.TabIndex = 0;
this.button1.Text = "Partie scénarisé"; this.button1.Text = "Partie scénarisée";
this.button1.UseVisualStyleBackColor = true; this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click); this.button1.Click += new System.EventHandler(this.button1_Click);
// //
// button2 // button2
// //
this.button2.Location = new System.Drawing.Point(478, 207); this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button2.Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button2.Location = new System.Drawing.Point(453, 31);
this.button2.Name = "button2"; this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(178, 84); this.button2.Size = new System.Drawing.Size(242, 84);
this.button2.TabIndex = 1; this.button2.TabIndex = 1;
this.button2.Text = "Partie classique"; this.button2.Text = "Partie classique";
this.button2.UseVisualStyleBackColor = true; this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click); this.button2.Click += new System.EventHandler(this.button2_Click);
// //
// lbl_ou
//
this.lbl_ou.AutoSize = true;
this.lbl_ou.BackColor = System.Drawing.Color.Transparent;
this.lbl_ou.Font = new System.Drawing.Font("Consolas", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbl_ou.ForeColor = System.Drawing.Color.White;
this.lbl_ou.Location = new System.Drawing.Point(358, 57);
this.lbl_ou.Name = "lbl_ou";
this.lbl_ou.Size = new System.Drawing.Size(53, 37);
this.lbl_ou.TabIndex = 2;
this.lbl_ou.Text = "OU";
//
// Menu // Menu
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450); this.BackgroundImage = global::psychorientation.Properties.Resources.paternFeuille;
this.ClientSize = new System.Drawing.Size(770, 157);
this.Controls.Add(this.lbl_ou);
this.Controls.Add(this.button2); this.Controls.Add(this.button2);
this.Controls.Add(this.button1); this.Controls.Add(this.button1);
this.DoubleBuffered = true;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false; this.MaximizeBox = false;
this.Name = "Menu"; this.Name = "Menu";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Menu"; this.Text = "Menu";
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Menu_KeyDown);
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout();
} }
...@@ -71,5 +94,6 @@ ...@@ -71,5 +94,6 @@
private System.Windows.Forms.Button button1; private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2; private System.Windows.Forms.Button button2;
private System.Windows.Forms.Label lbl_ou;
} }
} }
\ No newline at end of file
...@@ -15,27 +15,44 @@ namespace psychorientation ...@@ -15,27 +15,44 @@ namespace psychorientation
public Menu() public Menu()
{ {
InitializeComponent(); InitializeComponent();
TransmitKeyDown();
} }
private void button1_Click(object sender, EventArgs e) private void button1_Click(object sender, EventArgs e)
{ {
InterfaceClasse iC = new InterfaceClasse(false); InterfaceClasse iC = new InterfaceClasse(false);
iC.FormClosing += new FormClosingEventHandler(f_FormClosing);
this.Hide();
iC.Show(); iC.Show();
} }
private void f_FormClosing(object sender, FormClosingEventArgs e)
{
this.Close();
}
private void button2_Click(object sender, EventArgs e) private void button2_Click(object sender, EventArgs e)
{ {
InterfaceClasse iC = new InterfaceClasse(true); InterfaceClasse iC = new InterfaceClasse(true);
iC.FormClosing += new FormClosingEventHandler(f_FormClosing);
this.Hide();
iC.Show(); iC.Show();
} }
private void TransmitKeyDown()
{
foreach (Control c in this.Controls)
{
if (c is Panel)
{
foreach (Control c2 in (c as Panel).Controls)
{
c2.KeyDown += new System.Windows.Forms.KeyEventHandler(Menu_KeyDown);
}
}
c.KeyDown += new System.Windows.Forms.KeyEventHandler(Menu_KeyDown);
}
}
private void Menu_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Escape)
{
Close();
}
}
} }
} }
...@@ -31,20 +31,27 @@ ...@@ -31,20 +31,27 @@
this.lblMessage = new System.Windows.Forms.Label(); this.lblMessage = new System.Windows.Forms.Label();
this.lblTitre = new System.Windows.Forms.Label(); this.lblTitre = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.lblScore = new System.Windows.Forms.Label();
this.lblEffort = new System.Windows.Forms.Label();
this.lblCompetence = new System.Windows.Forms.Label();
this.lblMoyenen = new System.Windows.Forms.Label();
this.SuspendLayout(); this.SuspendLayout();
// //
// lblMessage // lblMessage
// //
this.lblMessage.BackColor = System.Drawing.Color.Transparent;
this.lblMessage.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblMessage.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblMessage.Location = new System.Drawing.Point(12, 72); this.lblMessage.Location = new System.Drawing.Point(12, 72);
this.lblMessage.Name = "lblMessage"; this.lblMessage.Name = "lblMessage";
this.lblMessage.Size = new System.Drawing.Size(962, 181); this.lblMessage.Size = new System.Drawing.Size(962, 181);
this.lblMessage.TabIndex = 0; this.lblMessage.TabIndex = 0;
this.lblMessage.Text = "label1"; this.lblMessage.Text = "label1";
this.lblMessage.Visible = false;
// //
// lblTitre // lblTitre
// //
this.lblTitre.AutoSize = true; this.lblTitre.AutoSize = true;
this.lblTitre.BackColor = System.Drawing.Color.Transparent;
this.lblTitre.Font = new System.Drawing.Font("Microsoft Sans Serif", 27.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblTitre.Font = new System.Drawing.Font("Microsoft Sans Serif", 27.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblTitre.Location = new System.Drawing.Point(116, 9); this.lblTitre.Location = new System.Drawing.Point(116, 9);
this.lblTitre.Name = "lblTitre"; this.lblTitre.Name = "lblTitre";
...@@ -60,11 +67,64 @@ ...@@ -60,11 +67,64 @@
this.label1.Size = new System.Drawing.Size(0, 13); this.label1.Size = new System.Drawing.Size(0, 13);
this.label1.TabIndex = 4; this.label1.TabIndex = 4;
// //
// lblScore
//
this.lblScore.BackColor = System.Drawing.Color.Transparent;
this.lblScore.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblScore.Location = new System.Drawing.Point(12, 63);
this.lblScore.Name = "lblScore";
this.lblScore.Size = new System.Drawing.Size(962, 116);
this.lblScore.TabIndex = 5;
this.lblScore.Text = "label1";
this.lblScore.Visible = false;
//
// lblEffort
//
this.lblEffort.AutoSize = true;
this.lblEffort.BackColor = System.Drawing.Color.Transparent;
this.lblEffort.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblEffort.Location = new System.Drawing.Point(14, 179);
this.lblEffort.Name = "lblEffort";
this.lblEffort.Size = new System.Drawing.Size(66, 24);
this.lblEffort.TabIndex = 6;
this.lblEffort.Text = "label2";
this.lblEffort.Visible = false;
//
// lblCompetence
//
this.lblCompetence.AutoSize = true;
this.lblCompetence.BackColor = System.Drawing.Color.Transparent;
this.lblCompetence.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblCompetence.Location = new System.Drawing.Point(14, 207);
this.lblCompetence.Name = "lblCompetence";
this.lblCompetence.Size = new System.Drawing.Size(66, 24);
this.lblCompetence.TabIndex = 7;
this.lblCompetence.Text = "label2";
this.lblCompetence.Visible = false;
//
// lblMoyenen
//
this.lblMoyenen.AutoSize = true;
this.lblMoyenen.BackColor = System.Drawing.Color.Transparent;
this.lblMoyenen.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblMoyenen.Location = new System.Drawing.Point(14, 236);
this.lblMoyenen.Name = "lblMoyenen";
this.lblMoyenen.Size = new System.Drawing.Size(66, 24);
this.lblMoyenen.TabIndex = 8;
this.lblMoyenen.Text = "label2";
this.lblMoyenen.Visible = false;
this.lblMoyenen.Click += new System.EventHandler(this.lblMoyenen_Click);
//
// Message // Message
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackgroundImage = global::psychorientation.Properties.Resources.paternFeuille;
this.ClientSize = new System.Drawing.Size(986, 347); this.ClientSize = new System.Drawing.Size(986, 347);
this.Controls.Add(this.lblMoyenen);
this.Controls.Add(this.lblCompetence);
this.Controls.Add(this.lblEffort);
this.Controls.Add(this.lblScore);
this.Controls.Add(this.label1); this.Controls.Add(this.label1);
this.Controls.Add(this.lblTitre); this.Controls.Add(this.lblTitre);
this.Controls.Add(this.lblMessage); this.Controls.Add(this.lblMessage);
...@@ -84,5 +144,9 @@ ...@@ -84,5 +144,9 @@
private System.Windows.Forms.Label lblMessage; private System.Windows.Forms.Label lblMessage;
private System.Windows.Forms.Label lblTitre; private System.Windows.Forms.Label lblTitre;
private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label lblScore;
private System.Windows.Forms.Label lblEffort;
private System.Windows.Forms.Label lblCompetence;
private System.Windows.Forms.Label lblMoyenen;
} }
} }
\ No newline at end of file