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

Mise trackBar sur InterfaceClasse

parent 6f67ac11
Branches
1 merge request!27InterfaceClasse trackBar coef
......@@ -40,9 +40,13 @@
this.pnlListeEleve = new System.Windows.Forms.Panel();
this.lblListeEleve = new System.Windows.Forms.Label();
this.imgListPerso = new System.Windows.Forms.ImageList(this.components);
this.pnlChoix = new System.Windows.Forms.Panel();
this.lblNotation = new System.Windows.Forms.Label();
this.lblCours = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.pb_action_suivante)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pb_sortir)).BeginInit();
this.pnlListeEleve.SuspendLayout();
this.pnlChoix.SuspendLayout();
this.SuspendLayout();
//
// pb_action_suivante
......@@ -161,6 +165,33 @@
this.imgListPerso.Images.SetKeyName(4, "prof1.png");
this.imgListPerso.Images.SetKeyName(5, "prof2.png");
//
// pnlChoix
//
this.pnlChoix.Controls.Add(this.lblCours);
this.pnlChoix.Controls.Add(this.lblNotation);
this.pnlChoix.Location = new System.Drawing.Point(1107, 99);
this.pnlChoix.Name = "pnlChoix";
this.pnlChoix.Size = new System.Drawing.Size(189, 528);
this.pnlChoix.TabIndex = 8;
//
// lblNotation
//
this.lblNotation.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F);
this.lblNotation.Location = new System.Drawing.Point(13, 87);
this.lblNotation.Name = "lblNotation";
this.lblNotation.Size = new System.Drawing.Size(164, 59);
this.lblNotation.TabIndex = 0;
this.lblNotation.Text = "Type de notation visant à aider les eleves de competence :";
//
// lblCours
//
this.lblCours.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F);
this.lblCours.Location = new System.Drawing.Point(13, 282);
this.lblCours.Name = "lblCours";
this.lblCours.Size = new System.Drawing.Size(164, 59);
this.lblCours.TabIndex = 1;
this.lblCours.Text = "Type de cours visant à aider les eleves de competence :";
//
// InterfaceClasse
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
......@@ -169,6 +200,7 @@
this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.ClientSize = new System.Drawing.Size(1357, 783);
this.Controls.Add(this.pnlChoix);
this.Controls.Add(this.lblEffort);
this.Controls.Add(this.lblCompetence);
this.Controls.Add(this.lblMoyenne);
......@@ -189,6 +221,7 @@
((System.ComponentModel.ISupportInitialize)(this.pb_sortir)).EndInit();
this.pnlListeEleve.ResumeLayout(false);
this.pnlListeEleve.PerformLayout();
this.pnlChoix.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
......@@ -208,6 +241,9 @@
private System.Windows.Forms.Panel pnlListeEleve;
private System.Windows.Forms.Label lblListeEleve;
private System.Windows.Forms.ImageList imgListPerso;
private System.Windows.Forms.Panel pnlChoix;
private System.Windows.Forms.Label lblNotation;
private System.Windows.Forms.Label lblCours;
}
}
......@@ -20,7 +20,13 @@ namespace psychorientation
private int[] positionElevex = { 322, 571, 698, 951, 322, 571, 698, 951 };
private int[] positionElevey = { 398, 398, 398, 398, 505, 505, 505, 505 };
private string notaText = "Type de notation visant à aider les eleves de competence : ";
private string coursText = "Type de cours visant à aider les eleves de competence : ";
private double valCours = 5.0;
private double valNotation = 5.0;
public InterfaceClasse()
{
InitializeComponent();
......@@ -46,6 +52,22 @@ namespace psychorientation
y += 220;
}
TrackBar tbNota = new TrackBar();
tbNota.Location = new System.Drawing.Point(0, 10 + lblNotation.Location.Y+lblNotation.Size.Height);
tbNota.Size = new System.Drawing.Size(184, 45);
tbNota.Value = 5;
tbNota.Scroll += new System.EventHandler(tbNota_Scroll);
pnlChoix.Controls.Add(tbNota);
lblNotation.Text = notaText + tbNota.Value.ToString();
TrackBar tbCours = new TrackBar();
tbCours.Location = new System.Drawing.Point(0, 10 + lblCours.Location.Y + lblCours.Size.Height);
tbCours.Size = new System.Drawing.Size(184, 45);
tbCours.Value = 5;
tbCours.Scroll += new System.EventHandler(tbCours_Scroll);
pnlChoix.Controls.Add(tbCours);
lblCours.Text = coursText + tbCours.Value.ToString();
Message mAccueil = new Message("Bonjour apprenti prof, vous allez apprendre à éduquer des joueurs !! ", "Début", TypeMessage.INFORMATION);
mAccueil.ShowDialog();
......@@ -106,7 +128,7 @@ namespace psychorientation
return;
}*/
Message mControle = new Message("C'est la fin du mois, veuillez choisir le niveau de compétence du public cible de votre enseignement.", "Cours", TypeMessage.NOTATION);
/*Message mControle = new Message("C'est la fin du mois, veuillez choisir le niveau de compétence du public cible de votre enseignement.", "Cours", TypeMessage.NOTATION);
mControle.ShowDialog();
......@@ -115,8 +137,15 @@ namespace psychorientation
{
el.Progression(mControle.getReponseDouble);
el.AjouterNote("Controle " + lblClasse.Text + " " + lblDate.Text);
}*/
foreach (Eleve el in gestEleve.GetListeEleves())
{
el.Progression(valCours);
el.AjouterNote("Controle " + lblClasse.Text + " " + lblDate.Text);
}
lblEffort.Text = "Effort de la classe : " + Math.Round(gestEleve.GetEffortClasse(), 1).ToString();
lblCompetence.Text = "Competence de la classe : " + Math.Round(gestEleve.GetCompetenceClasse(), 1).ToString();
lblMoyenne.Text = "Moyenne de la classe : " + Math.Round(gestEleve.GetMoyenneClasse(), 1).ToString();
......@@ -192,5 +221,19 @@ namespace psychorientation
Close();
}
}
private void tbNota_Scroll(object sender, EventArgs e)
{
TrackBar tbNota = (TrackBar)sender;
valNotation = (double)tbNota.Value;
lblNotation.Text = notaText + valNotation.ToString();
}
private void tbCours_Scroll(object sender, EventArgs e)
{
TrackBar tbCours = (TrackBar)sender;
valCours = (double)tbCours.Value;
lblCours.Text = coursText + valCours.ToString();
}
}
}
......@@ -125,7 +125,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACM
mgEAAk1TRnQBSQFMAgEBBgEAAQgBAAEIAQAByAEAAcgBAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
mgEAAk1TRnQBSQFMAgEBBgEAARgBAAEYAQAByAEAAcgBAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABIAEDAgABkAEBAgABAQEAAQgGAAHiAQQXAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEA
AcAB3AHAAQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEA
A0IBAAM5AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIA
......
......@@ -100,6 +100,7 @@
//
this.panel1.BackColor = System.Drawing.Color.Silver;
this.panel1.Controls.Add(this.pnlEffort);
this.panel1.Controls.Add(this.lblEffort);
this.panel1.Location = new System.Drawing.Point(96, 95);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(139, 26);
......@@ -137,7 +138,7 @@
// lblEffort
//
this.lblEffort.AutoSize = true;
this.lblEffort.Location = new System.Drawing.Point(49, 109);
this.lblEffort.Location = new System.Drawing.Point(3, 5);
this.lblEffort.Name = "lblEffort";
this.lblEffort.Size = new System.Drawing.Size(0, 13);
this.lblEffort.TabIndex = 7;
......@@ -177,7 +178,6 @@
this.Controls.Add(this.lblMoyenne);
this.Controls.Add(this.label4);
this.Controls.Add(this.lblCompetence);
this.Controls.Add(this.lblEffort);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.Controls.Add(this.lblClasse);
......@@ -186,10 +186,11 @@
this.Controls.Add(this.label1);
this.Controls.Add(this.lblEleve);
this.Name = "InterfaceInfoEleve";
this.Size = new System.Drawing.Size(246, 216);
this.Size = new System.Drawing.Size(239, 216);
this.Load += new System.EventHandler(this.InterfaceInfoEleve_Load);
this.Click += new System.EventHandler(this.InterfaceInfoEleve_Click);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel2.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
......
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