diff --git a/psychorientation/psychorientation/InterfaceInfoCompletEleve.Designer.cs b/psychorientation/psychorientation/InterfaceInfoCompletEleve.Designer.cs index 2eb7f24e15a96cfb6385ea6e5ce90b3f8ee336f3..5ee83c857c3fdacc06c55ab61c7e3de5b5d89283 100755 --- a/psychorientation/psychorientation/InterfaceInfoCompletEleve.Designer.cs +++ b/psychorientation/psychorientation/InterfaceInfoCompletEleve.Designer.cs @@ -41,9 +41,11 @@ this.lblMoyenneNote = new System.Windows.Forms.Label(); this.pcbEleve = new System.Windows.Forms.PictureBox(); this.pnlNote = new System.Windows.Forms.Panel(); + this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.panel1.SuspendLayout(); this.panel2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pcbEleve)).BeginInit(); + this.pnlNote.SuspendLayout(); this.SuspendLayout(); // // lblNomEleve @@ -161,11 +163,25 @@ // // pnlNote // + this.pnlNote.Controls.Add(this.tableLayoutPanel1); 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; // + // tableLayoutPanel1 + // + this.tableLayoutPanel1.ColumnCount = 3; + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 119F)); + this.tableLayoutPanel1.Location = new System.Drawing.Point(16, 19); + this.tableLayoutPanel1.Name = "tableLayoutPanel1"; + this.tableLayoutPanel1.RowCount = 1; + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel1.Size = new System.Drawing.Size(355, 50); + this.tableLayoutPanel1.TabIndex = 0; + // // InterfaceInfoCompletEleve // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -188,6 +204,7 @@ this.panel1.ResumeLayout(false); this.panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.pcbEleve)).EndInit(); + this.pnlNote.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); @@ -208,5 +225,6 @@ private System.Windows.Forms.Label lblMoyenneNote; private System.Windows.Forms.PictureBox pcbEleve; private System.Windows.Forms.Panel pnlNote; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; } } \ No newline at end of file diff --git a/psychorientation/psychorientation/InterfaceInfoCompletEleve.cs b/psychorientation/psychorientation/InterfaceInfoCompletEleve.cs index 8338f6989301d330f99a406c850994c28c9fc034..b06bfe815ec0e65aacc81c580034036d9c23eb9b 100755 --- a/psychorientation/psychorientation/InterfaceInfoCompletEleve.cs +++ b/psychorientation/psychorientation/InterfaceInfoCompletEleve.cs @@ -54,11 +54,44 @@ namespace psychorientation MajPanel(pnlCompetence, eleve.GetCompetence()); MajPanel(pnlEffort, eleve.GetEffort()); + + InitNote(); } private void MajPanel(Panel p, double valeur) { int val = (int)valeur; p.Size = new Size(val * 133 / 10, p.Height); } + + private void InitNote() + { + List<Note> listNote = this.eleve.GetlisteNotes(); + TableLayoutPanel tlp = new TableLayoutPanel(); + tlp.ColumnCount = 4; + tlp.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); + tlp.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); + tlp.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); + tlp.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); + tlp.RowCount = 1 + listNote.Count; + for(int i=0; i<tlp.RowCount; i++) + { + tlp.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 50F)); + } + pnlNote.Controls.Add(tlp); + + /*this.tableLayoutPanel1.ColumnCount = 4; + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); + this.tableLayoutPanel1.Location = new System.Drawing.Point(16, 19); + this.tableLayoutPanel1.Name = "tableLayoutPanel1"; + this.tableLayoutPanel1.RowCount = 1; + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel1.Size = new System.Drawing.Size(413, 50); + this.tableLayoutPanel1.TabIndex = 0;*/ + } + + } } diff --git a/psychorientation/psychorientation/ListeEleve.cs b/psychorientation/psychorientation/ListeEleve.cs index 465ead13b13d4933763de799c40c7c4d8e52ad5a..9b8cea56cfa19c0a9c704c1027924ffb80cff478 100755 --- a/psychorientation/psychorientation/ListeEleve.cs +++ b/psychorientation/psychorientation/ListeEleve.cs @@ -24,10 +24,13 @@ namespace psychorientation Libelle lib = new Libelle(); // TEST - //Eleve e1 = new Eleve(4); - //Eleve e2 = new Eleve(5); - //gestEleve.AjouterEleve(e1); - //gestEleve.AjouterEleve(e2); + Eleve e1 = new Eleve(4); + Eleve e2 = new Eleve(5); + e1.AjouterNote("une"); + e1.AjouterNote("deux"); + e1.AjouterNote("trois"); + gestEleve.AjouterEleve(e1); + gestEleve.AjouterEleve(e2); List<Eleve> listEleve = gestEleve.GetListeEleves(); int y = 0;