Skip to content
Snippets Groups Projects
Commit ac04704e authored by Loïc Gross's avatar Loïc Gross
Browse files

Ajout ListeElele sur interface principal

parent f0d0ec22
1 merge request!18Ajout ListeEleve sur interface principal
...@@ -29,13 +29,14 @@ ...@@ -29,13 +29,14 @@
private void InitializeComponent() private void InitializeComponent()
{ {
this.pb_action_suivante = new System.Windows.Forms.PictureBox(); this.pb_action_suivante = new System.Windows.Forms.PictureBox();
this.pb_liste_eleves = new System.Windows.Forms.PictureBox();
this.lblDate = new System.Windows.Forms.Label(); this.lblDate = new System.Windows.Forms.Label();
this.pb_sortir = new System.Windows.Forms.PictureBox(); this.pb_sortir = new System.Windows.Forms.PictureBox();
this.lblClasse = new System.Windows.Forms.Label(); this.lblClasse = new System.Windows.Forms.Label();
this.pnlListeEleve = new System.Windows.Forms.Panel();
this.lblListeEleve = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.pb_action_suivante)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pb_action_suivante)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pb_liste_eleves)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pb_sortir)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pb_sortir)).BeginInit();
this.pnlListeEleve.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// pb_action_suivante // pb_action_suivante
...@@ -51,18 +52,6 @@ ...@@ -51,18 +52,6 @@
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);
// //
// pb_liste_eleves
//
this.pb_liste_eleves.BackColor = System.Drawing.Color.Transparent;
this.pb_liste_eleves.BackgroundImage = global::psychorientation.Properties.Resources.grp;
this.pb_liste_eleves.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.pb_liste_eleves.Location = new System.Drawing.Point(12, 12);
this.pb_liste_eleves.Name = "pb_liste_eleves";
this.pb_liste_eleves.Size = new System.Drawing.Size(100, 100);
this.pb_liste_eleves.TabIndex = 1;
this.pb_liste_eleves.TabStop = false;
this.pb_liste_eleves.Click += new System.EventHandler(this.Pb_liste_eleves_Click);
//
// lblDate // lblDate
// //
this.lblDate.AutoSize = true; this.lblDate.AutoSize = true;
...@@ -99,6 +88,26 @@ ...@@ -99,6 +88,26 @@
this.lblClasse.TabIndex = 4; this.lblClasse.TabIndex = 4;
this.lblClasse.Text = "Chargement..."; this.lblClasse.Text = "Chargement...";
// //
// pnlListeEleve
//
this.pnlListeEleve.AutoScroll = true;
this.pnlListeEleve.BackColor = System.Drawing.Color.White;
this.pnlListeEleve.Controls.Add(this.lblListeEleve);
this.pnlListeEleve.Location = new System.Drawing.Point(0, -1);
this.pnlListeEleve.Name = "pnlListeEleve";
this.pnlListeEleve.Size = new System.Drawing.Size(241, 783);
this.pnlListeEleve.TabIndex = 5;
//
// lblListeEleve
//
this.lblListeEleve.AutoSize = true;
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.Name = "lblListeEleve";
this.lblListeEleve.Size = new System.Drawing.Size(217, 29);
this.lblListeEleve.TabIndex = 0;
this.lblListeEleve.Text = "Liste des élèves :";
//
// InterfaceClasse // InterfaceClasse
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
...@@ -107,10 +116,10 @@ ...@@ -107,10 +116,10 @@
this.BackgroundImage = global::psychorientation.Properties.Resources.salleV11; this.BackgroundImage = global::psychorientation.Properties.Resources.salleV11;
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.pnlListeEleve);
this.Controls.Add(this.lblClasse); this.Controls.Add(this.lblClasse);
this.Controls.Add(this.pb_sortir); this.Controls.Add(this.pb_sortir);
this.Controls.Add(this.lblDate); this.Controls.Add(this.lblDate);
this.Controls.Add(this.pb_liste_eleves);
this.Controls.Add(this.pb_action_suivante); this.Controls.Add(this.pb_action_suivante);
this.DoubleBuffered = true; this.DoubleBuffered = true;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
...@@ -121,8 +130,9 @@ ...@@ -121,8 +130,9 @@
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);
((System.ComponentModel.ISupportInitialize)(this.pb_action_suivante)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pb_action_suivante)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pb_liste_eleves)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pb_sortir)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pb_sortir)).EndInit();
this.pnlListeEleve.ResumeLayout(false);
this.pnlListeEleve.PerformLayout();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
...@@ -131,10 +141,11 @@ ...@@ -131,10 +141,11 @@
#endregion #endregion
private System.Windows.Forms.PictureBox pb_action_suivante; private System.Windows.Forms.PictureBox pb_action_suivante;
private System.Windows.Forms.PictureBox pb_liste_eleves;
private System.Windows.Forms.Label lblDate; private System.Windows.Forms.Label lblDate;
private System.Windows.Forms.PictureBox pb_sortir; private System.Windows.Forms.PictureBox pb_sortir;
private System.Windows.Forms.Label lblClasse; private System.Windows.Forms.Label lblClasse;
private System.Windows.Forms.Panel pnlListeEleve;
private System.Windows.Forms.Label lblListeEleve;
} }
} }
...@@ -31,6 +31,19 @@ namespace psychorientation ...@@ -31,6 +31,19 @@ namespace psychorientation
{ {
gestEleve.AjouterEleve(new Eleve(i)); gestEleve.AjouterEleve(new Eleve(i));
} }
Libelle lib = new Libelle();
List<Eleve> listEleve = gestEleve.GetListeEleves();
int y = 20;
foreach (Eleve eleve in listEleve)
{
InterfaceInfoEleve ii = new InterfaceInfoEleve();
ii.setParam(eleve);
ii.Location = new Point(0, y);
pnlListeEleve.Controls.Add(ii);
y += 220;
}
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();
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
// //
this.lblEleve.AutoSize = true; this.lblEleve.AutoSize = true;
this.lblEleve.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblEleve.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblEleve.Location = new System.Drawing.Point(77, 16); this.lblEleve.Location = new System.Drawing.Point(12, 13);
this.lblEleve.Name = "lblEleve"; this.lblEleve.Name = "lblEleve";
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;
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
// label1 // label1
// //
this.label1.AutoSize = true; this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(41, 71); this.label1.Location = new System.Drawing.Point(3, 71);
this.label1.Name = "label1"; this.label1.Name = "label1";
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;
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
// label2 // label2
// //
this.label2.AutoSize = true; this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(41, 105); this.label2.Location = new System.Drawing.Point(3, 108);
this.label2.Name = "label2"; this.label2.Name = "label2";
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;
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
// label3 // label3
// //
this.label3.AutoSize = true; this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(15, 150); this.label3.Location = new System.Drawing.Point(3, 150);
this.label3.Name = "label3"; this.label3.Name = "label3";
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;
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
// lblClasse // lblClasse
// //
this.lblClasse.AutoSize = true; this.lblClasse.AutoSize = true;
this.lblClasse.Location = new System.Drawing.Point(97, 71); this.lblClasse.Location = new System.Drawing.Point(59, 71);
this.lblClasse.Name = "lblClasse"; this.lblClasse.Name = "lblClasse";
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;
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,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(97, 100); this.panel1.Location = new System.Drawing.Point(83, 95);
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 = 5; this.panel1.TabIndex = 5;
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,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(97, 146); this.panel2.Location = new System.Drawing.Point(83, 150);
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 = 6; this.panel2.TabIndex = 6;
...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
// label4 // label4
// //
this.label4.AutoSize = true; this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(12, 189); this.label4.Location = new System.Drawing.Point(3, 189);
this.label4.Name = "label4"; this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(98, 13); this.label4.Size = new System.Drawing.Size(98, 13);
this.label4.TabIndex = 9; this.label4.TabIndex = 9;
...@@ -163,7 +163,7 @@ ...@@ -163,7 +163,7 @@
// lblMoyenne // lblMoyenne
// //
this.lblMoyenne.AutoSize = true; this.lblMoyenne.AutoSize = true;
this.lblMoyenne.Location = new System.Drawing.Point(113, 189); this.lblMoyenne.Location = new System.Drawing.Point(96, 189);
this.lblMoyenne.Name = "lblMoyenne"; this.lblMoyenne.Name = "lblMoyenne";
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;
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
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(246, 216); this.Size = new System.Drawing.Size(223, 216);
this.Load += new System.EventHandler(this.InterfaceInfoEleve_Load); this.Load += new System.EventHandler(this.InterfaceInfoEleve_Load);
this.Click += new System.EventHandler(this.InterfaceInfoEleve_Click); this.Click += new System.EventHandler(this.InterfaceInfoEleve_Click);
this.panel1.ResumeLayout(false); this.panel1.ResumeLayout(false);
......
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