diff --git a/psychorientation/psychorientation/InterfaceClasse.cs b/psychorientation/psychorientation/InterfaceClasse.cs index 68ad225541a2217b1a5a7fc20812de7725dab53e..7e10da29b201fb9a20be21704ce18d366a8e2401 100644 --- a/psychorientation/psychorientation/InterfaceClasse.cs +++ b/psychorientation/psychorientation/InterfaceClasse.cs @@ -29,9 +29,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(); + + + ListeEleve listE = new ListeEleve(); + listE.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 bdaf1c6983d5b8d444f596e8f3c8a90892e4acd2..2eb7f24e15a96cfb6385ea6e5ce90b3f8ee336f3 100755 --- a/psychorientation/psychorientation/InterfaceInfoCompletEleve.Designer.cs +++ b/psychorientation/psychorientation/InterfaceInfoCompletEleve.Designer.cs @@ -40,6 +40,7 @@ this.pnlCompetence = new System.Windows.Forms.Panel(); this.lblMoyenneNote = new System.Windows.Forms.Label(); this.pcbEleve = new System.Windows.Forms.PictureBox(); + this.pnlNote = new System.Windows.Forms.Panel(); this.panel1.SuspendLayout(); this.panel2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pcbEleve)).BeginInit(); @@ -158,11 +159,19 @@ this.pcbEleve.TabIndex = 15; this.pcbEleve.TabStop = false; // + // pnlNote + // + this.pnlNote.Location = new System.Drawing.Point(98, 243); + this.pnlNote.Name = "pnlNote"; + this.pnlNote.Size = new System.Drawing.Size(391, 134); + this.pnlNote.TabIndex = 16; + // // InterfaceInfoCompletEleve // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(579, 408); + this.Controls.Add(this.pnlNote); this.Controls.Add(this.pcbEleve); this.Controls.Add(this.lblMoyenneNote); this.Controls.Add(this.panel2); @@ -198,5 +207,6 @@ private System.Windows.Forms.Panel pnlCompetence; private System.Windows.Forms.Label lblMoyenneNote; private System.Windows.Forms.PictureBox pcbEleve; + private System.Windows.Forms.Panel pnlNote; } } \ No newline at end of file diff --git a/psychorientation/psychorientation/InterfaceInfoEleve.Designer.cs b/psychorientation/psychorientation/InterfaceInfoEleve.Designer.cs index 6a1cccfad92110a490aacad4ee5489abbc0f61bf..f15db69b7cd9ace1cb1e75367053fc571fa6e999 100644 --- a/psychorientation/psychorientation/InterfaceInfoEleve.Designer.cs +++ b/psychorientation/psychorientation/InterfaceInfoEleve.Designer.cs @@ -54,6 +54,7 @@ this.lblEleve.Size = new System.Drawing.Size(99, 33); this.lblEleve.TabIndex = 0; this.lblEleve.Text = "label1"; + this.lblEleve.Click += new System.EventHandler(this.InterfaceInfoEleve_Click); // // label1 // @@ -63,6 +64,7 @@ this.label1.Size = new System.Drawing.Size(50, 13); this.label1.TabIndex = 1; this.label1.Text = "Classe : "; + this.label1.Click += new System.EventHandler(this.InterfaceInfoEleve_Click); // // label2 // @@ -72,6 +74,7 @@ this.label2.Size = new System.Drawing.Size(41, 13); this.label2.TabIndex = 2; this.label2.Text = "Effort : "; + this.label2.Click += new System.EventHandler(this.InterfaceInfoEleve_Click); // // label3 // @@ -81,6 +84,7 @@ this.label3.Size = new System.Drawing.Size(76, 13); this.label3.TabIndex = 3; this.label3.Text = "Compétence : "; + this.label3.Click += new System.EventHandler(this.InterfaceInfoEleve_Click); // // lblClasse // @@ -90,6 +94,7 @@ this.lblClasse.Size = new System.Drawing.Size(35, 13); this.lblClasse.TabIndex = 4; this.lblClasse.Text = "label4"; + this.lblClasse.Click += new System.EventHandler(this.InterfaceInfoEleve_Click); // // panel1 // @@ -99,6 +104,7 @@ this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(139, 26); this.panel1.TabIndex = 5; + this.panel1.Click += new System.EventHandler(this.InterfaceInfoEleve_Click); // // pnlEffort // @@ -107,6 +113,7 @@ this.pnlEffort.Name = "pnlEffort"; this.pnlEffort.Size = new System.Drawing.Size(133, 18); this.pnlEffort.TabIndex = 6; + this.pnlEffort.Click += new System.EventHandler(this.InterfaceInfoEleve_Click); // // panel2 // @@ -116,6 +123,7 @@ this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(139, 26); this.panel2.TabIndex = 6; + this.panel2.Click += new System.EventHandler(this.InterfaceInfoEleve_Click); // // pnlCompetence // @@ -124,6 +132,7 @@ this.pnlCompetence.Name = "pnlCompetence"; this.pnlCompetence.Size = new System.Drawing.Size(125, 18); this.pnlCompetence.TabIndex = 7; + this.pnlCompetence.Click += new System.EventHandler(this.InterfaceInfoEleve_Click); // // lblEffort // @@ -149,6 +158,7 @@ this.label4.Size = new System.Drawing.Size(98, 13); this.label4.TabIndex = 9; this.label4.Text = "Moyenne général : "; + this.label4.Click += new System.EventHandler(this.InterfaceInfoEleve_Click); // // lblMoyenne // @@ -158,6 +168,7 @@ this.lblMoyenne.Size = new System.Drawing.Size(35, 13); this.lblMoyenne.TabIndex = 10; this.lblMoyenne.Text = "label5"; + this.lblMoyenne.Click += new System.EventHandler(this.InterfaceInfoEleve_Click); // // InterfaceInfoEleve // @@ -177,6 +188,7 @@ this.Name = "InterfaceInfoEleve"; this.Size = new System.Drawing.Size(246, 216); this.Load += new System.EventHandler(this.InterfaceInfoEleve_Load); + this.Click += new System.EventHandler(this.InterfaceInfoEleve_Click); this.panel1.ResumeLayout(false); this.panel2.ResumeLayout(false); this.ResumeLayout(false); diff --git a/psychorientation/psychorientation/InterfaceInfoEleve.cs b/psychorientation/psychorientation/InterfaceInfoEleve.cs index 10b55ce24544cfc59941be05f50339040df71508..80c58fe08949cc9194abfca92bcb834b735599ec 100644 --- a/psychorientation/psychorientation/InterfaceInfoEleve.cs +++ b/psychorientation/psychorientation/InterfaceInfoEleve.cs @@ -20,7 +20,7 @@ namespace psychorientation private void InterfaceInfoEleve_Load(object sender, EventArgs e) { - + } public void setParam(Eleve el) @@ -54,5 +54,12 @@ namespace psychorientation int val = (int)valeur; p.Size = new Size(val * 133 / 10, p.Height); } + + private void InterfaceInfoEleve_Click(object sender, EventArgs e) + { + InterfaceInfoCompletEleve iice = new InterfaceInfoCompletEleve(); + iice.setParam(this.eleve); + iice.Show(); + } } } diff --git a/psychorientation/psychorientation/ListeEleve.cs b/psychorientation/psychorientation/ListeEleve.cs index 2175b835fa7e2795ad191199d7e124ec820cd89d..465ead13b13d4933763de799c40c7c4d8e52ad5a 100755 --- a/psychorientation/psychorientation/ListeEleve.cs +++ b/psychorientation/psychorientation/ListeEleve.cs @@ -23,6 +23,12 @@ namespace psychorientation GestionnaireEleve gestEleve = new GestionnaireEleve(); Libelle lib = new Libelle(); + // TEST + //Eleve e1 = new Eleve(4); + //Eleve e2 = new Eleve(5); + //gestEleve.AjouterEleve(e1); + //gestEleve.AjouterEleve(e2); + List<Eleve> listEleve = gestEleve.GetListeEleves(); int y = 0; foreach ( Eleve eleve in listEleve)