diff --git a/psychorientation/psychorientation/InterfaceInfoCompletEleve.Designer.cs b/psychorientation/psychorientation/InterfaceInfoCompletEleve.Designer.cs new file mode 100755 index 0000000000000000000000000000000000000000..1c31329a5cbba92ae7e74b7cc08f77a1c796d610 --- /dev/null +++ b/psychorientation/psychorientation/InterfaceInfoCompletEleve.Designer.cs @@ -0,0 +1,202 @@ +namespace psychorientation +{ + partial class InterfaceInfoCompletEleve + { + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + this.lblNomEleve = new System.Windows.Forms.Label(); + this.lblClasse = new System.Windows.Forms.Label(); + this.lblEffort = new System.Windows.Forms.Label(); + this.lblCompetence = new System.Windows.Forms.Label(); + this.lblMoyenne = new System.Windows.Forms.Label(); + this.lblNiveau = new System.Windows.Forms.Label(); + this.panel1 = new System.Windows.Forms.Panel(); + this.pnlEffort = new System.Windows.Forms.Panel(); + this.panel2 = new System.Windows.Forms.Panel(); + this.pnlCompetence = new System.Windows.Forms.Panel(); + this.lblMoyenneNote = new System.Windows.Forms.Label(); + this.pcbEleve = new System.Windows.Forms.PictureBox(); + this.panel1.SuspendLayout(); + this.panel2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pcbEleve)).BeginInit(); + this.SuspendLayout(); + // + // lblNomEleve + // + this.lblNomEleve.AutoSize = true; + this.lblNomEleve.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F); + this.lblNomEleve.Location = new System.Drawing.Point(253, 14); + this.lblNomEleve.Name = "lblNomEleve"; + this.lblNomEleve.Size = new System.Drawing.Size(118, 24); + this.lblNomEleve.TabIndex = 0; + this.lblNomEleve.Text = "lblNomEleve"; + // + // lblClasse + // + this.lblClasse.AutoSize = true; + this.lblClasse.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F); + this.lblClasse.Location = new System.Drawing.Point(254, 71); + this.lblClasse.Name = "lblClasse"; + this.lblClasse.Size = new System.Drawing.Size(70, 18); + this.lblClasse.TabIndex = 2; + this.lblClasse.Text = "Classe : "; + // + // lblEffort + // + this.lblEffort.AutoSize = true; + this.lblEffort.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F); + this.lblEffort.Location = new System.Drawing.Point(254, 126); + this.lblEffort.Name = "lblEffort"; + this.lblEffort.Size = new System.Drawing.Size(44, 15); + this.lblEffort.TabIndex = 3; + this.lblEffort.Text = "Effort : "; + // + // lblCompetence + // + this.lblCompetence.AutoSize = true; + this.lblCompetence.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F); + this.lblCompetence.Location = new System.Drawing.Point(212, 160); + this.lblCompetence.Name = "lblCompetence"; + this.lblCompetence.Size = new System.Drawing.Size(86, 15); + this.lblCompetence.TabIndex = 4; + this.lblCompetence.Text = "Compétence : "; + // + // lblMoyenne + // + this.lblMoyenne.AutoSize = true; + this.lblMoyenne.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F); + this.lblMoyenne.Location = new System.Drawing.Point(186, 195); + this.lblMoyenne.Name = "lblMoyenne"; + this.lblMoyenne.Size = new System.Drawing.Size(112, 15); + this.lblMoyenne.TabIndex = 10; + this.lblMoyenne.Text = "Moyenne général : "; + // + // lblNiveau + // + this.lblNiveau.AutoSize = true; + this.lblNiveau.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F); + this.lblNiveau.Location = new System.Drawing.Point(330, 71); + this.lblNiveau.Name = "lblNiveau"; + this.lblNiveau.Size = new System.Drawing.Size(67, 18); + this.lblNiveau.TabIndex = 11; + this.lblNiveau.Text = "lblNiveau"; + this.lblNiveau.Click += new System.EventHandler(this.Label1_Click); + // + // panel1 + // + this.panel1.BackColor = System.Drawing.Color.Silver; + this.panel1.Controls.Add(this.pnlEffort); + this.panel1.Location = new System.Drawing.Point(320, 121); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(139, 26); + this.panel1.TabIndex = 12; + // + // pnlEffort + // + this.pnlEffort.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0))))); + this.pnlEffort.Location = new System.Drawing.Point(3, 5); + this.pnlEffort.Name = "pnlEffort"; + this.pnlEffort.Size = new System.Drawing.Size(133, 18); + this.pnlEffort.TabIndex = 6; + // + // panel2 + // + this.panel2.BackColor = System.Drawing.Color.Silver; + this.panel2.Controls.Add(this.pnlCompetence); + this.panel2.Location = new System.Drawing.Point(320, 156); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(139, 26); + this.panel2.TabIndex = 13; + // + // pnlCompetence + // + this.pnlCompetence.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0))))); + this.pnlCompetence.Location = new System.Drawing.Point(3, 4); + this.pnlCompetence.Name = "pnlCompetence"; + this.pnlCompetence.Size = new System.Drawing.Size(125, 18); + this.pnlCompetence.TabIndex = 7; + // + // lblMoyenneNote + // + this.lblMoyenneNote.AutoSize = true; + this.lblMoyenneNote.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F); + this.lblMoyenneNote.Location = new System.Drawing.Point(317, 195); + this.lblMoyenneNote.Name = "lblMoyenneNote"; + this.lblMoyenneNote.Size = new System.Drawing.Size(97, 15); + this.lblMoyenneNote.TabIndex = 14; + this.lblMoyenneNote.Text = "lblMoyenneNote"; + // + // pcbEleve + // + this.pcbEleve.Location = new System.Drawing.Point(32, 24); + this.pcbEleve.Name = "pcbEleve"; + this.pcbEleve.Size = new System.Drawing.Size(109, 97); + this.pcbEleve.TabIndex = 15; + this.pcbEleve.TabStop = false; + // + // 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.pcbEleve); + this.Controls.Add(this.lblMoyenneNote); + this.Controls.Add(this.panel2); + this.Controls.Add(this.panel1); + this.Controls.Add(this.lblNiveau); + this.Controls.Add(this.lblMoyenne); + this.Controls.Add(this.lblCompetence); + this.Controls.Add(this.lblEffort); + this.Controls.Add(this.lblClasse); + this.Controls.Add(this.lblNomEleve); + this.Name = "InterfaceInfoCompletEleve"; + this.Text = "InterfaceInfoCompletEleve"; + this.Load += new System.EventHandler(this.InterfaceInfoCompletEleve_Load); + this.panel1.ResumeLayout(false); + this.panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.pcbEleve)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label lblNomEleve; + private System.Windows.Forms.Label lblClasse; + private System.Windows.Forms.Label lblEffort; + private System.Windows.Forms.Label lblCompetence; + private System.Windows.Forms.Label lblMoyenne; + private System.Windows.Forms.Label lblNiveau; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.Panel pnlEffort; + private System.Windows.Forms.Panel panel2; + private System.Windows.Forms.Panel pnlCompetence; + private System.Windows.Forms.Label lblMoyenneNote; + private System.Windows.Forms.PictureBox pcbEleve; + } +} \ No newline at end of file diff --git a/psychorientation/psychorientation/InterfaceInfoCompletEleve.cs b/psychorientation/psychorientation/InterfaceInfoCompletEleve.cs new file mode 100755 index 0000000000000000000000000000000000000000..52fe073311937e5a24eb79a6a7dac3d3932674af --- /dev/null +++ b/psychorientation/psychorientation/InterfaceInfoCompletEleve.cs @@ -0,0 +1,61 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace psychorientation +{ + public partial class InterfaceInfoCompletEleve : Form + { + Eleve eleve; + public InterfaceInfoCompletEleve() + { + InitializeComponent(); + } + + private void Label1_Click(object sender, EventArgs e) + { + + } + + private void InterfaceInfoCompletEleve_Load(object sender, EventArgs e) + { + + } + + private void InterfaceInfoCompletEleve_Load(object sender, EventArgs e, Eleve el) + { + this.eleve = el; + actualiser(); + } + + private void actualiser() + { + Libelle lib = new Libelle(); + lblNomEleve.Text = "Eleve n°" + eleve.GetId(); + lblNiveau.Text = lib.Niveau(eleve.GetClasse()); + double moyenne = eleve.GetMoyenne(); + if (moyenne == -1) + { + lblMoyenneNote.Text = "Pas encore d'évaluation"; + } + else + { + lblMoyenneNote.Text = eleve.GetMoyenne().ToString() + "/20"; + } + + MajPanel(pnlCompetence, eleve.GetCompetence()); + MajPanel(pnlEffort, eleve.GetEffort()); + } + private void MajPanel(Panel p, double valeur) + { + int val = (int)valeur; + p.Size = new Size(val * 133 / 10, p.Height); + } + } +} diff --git a/psychorientation/psychorientation/InterfaceInfoCompletEleve.resx b/psychorientation/psychorientation/InterfaceInfoCompletEleve.resx new file mode 100755 index 0000000000000000000000000000000000000000..1af7de150c99c12dd67a509fe57c10d63e4eeb04 --- /dev/null +++ b/psychorientation/psychorientation/InterfaceInfoCompletEleve.resx @@ -0,0 +1,120 @@ +<?xml version="1.0" encoding="utf-8"?> +<root> + <!-- + Microsoft ResX Schema + + Version 2.0 + + The primary goals of this format is to allow a simple XML format + that is mostly human readable. The generation and parsing of the + various data types are done through the TypeConverter classes + associated with the data types. + + Example: + + ... ado.net/XML headers & schema ... + <resheader name="resmimetype">text/microsoft-resx</resheader> + <resheader name="version">2.0</resheader> + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> + <value>[base64 mime encoded serialized .NET Framework object]</value> + </data> + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> + <comment>This is a comment</comment> + </data> + + There are any number of "resheader" rows that contain simple + name/value pairs. + + Each data row contains a name, and value. The row also contains a + type or mimetype. Type corresponds to a .NET class that support + text/value conversion through the TypeConverter architecture. + Classes that don't support this are serialized and stored with the + mimetype set. + + The mimetype is used for serialized objects, and tells the + ResXResourceReader how to depersist the object. This is currently not + extensible. For a given mimetype the value must be set accordingly: + + Note - application/x-microsoft.net.object.binary.base64 is the format + that the ResXResourceWriter will generate, however the reader can + read any of the formats listed below. + + mimetype: application/x-microsoft.net.object.binary.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.soap.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> + <xsd:element name="root" msdata:IsDataSet="true"> + <xsd:complexType> + <xsd:choice maxOccurs="unbounded"> + <xsd:element name="metadata"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" /> + </xsd:sequence> + <xsd:attribute name="name" use="required" type="xsd:string" /> + <xsd:attribute name="type" type="xsd:string" /> + <xsd:attribute name="mimetype" type="xsd:string" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="assembly"> + <xsd:complexType> + <xsd:attribute name="alias" type="xsd:string" /> + <xsd:attribute name="name" type="xsd:string" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="data"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="resheader"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" /> + </xsd:complexType> + </xsd:element> + </xsd:choice> + </xsd:complexType> + </xsd:element> + </xsd:schema> + <resheader name="resmimetype"> + <value>text/microsoft-resx</value> + </resheader> + <resheader name="version"> + <value>2.0</value> + </resheader> + <resheader name="reader"> + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> +</root> \ No newline at end of file diff --git a/psychorientation/psychorientation/InterfaceInfoEleve.Designer.cs b/psychorientation/psychorientation/InterfaceInfoEleve.Designer.cs index 9d4d0ff4d891ef4939408dc435df709148d3222e..6a1cccfad92110a490aacad4ee5489abbc0f61bf 100644 --- a/psychorientation/psychorientation/InterfaceInfoEleve.Designer.cs +++ b/psychorientation/psychorientation/InterfaceInfoEleve.Designer.cs @@ -67,7 +67,7 @@ // label2 // this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(50, 100); + this.label2.Location = new System.Drawing.Point(41, 105); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(41, 13); this.label2.TabIndex = 2; @@ -76,7 +76,7 @@ // label3 // this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(15, 146); + this.label3.Location = new System.Drawing.Point(15, 150); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(76, 13); this.label3.TabIndex = 3; diff --git a/psychorientation/psychorientation/InterfaceInfoEleve.cs b/psychorientation/psychorientation/InterfaceInfoEleve.cs index ccfa2fc99fe1dc914fdf79d773d459bf710785c3..b499ea9bb2b2851d33bfd02f3e8e3354112c7b3b 100644 --- a/psychorientation/psychorientation/InterfaceInfoEleve.cs +++ b/psychorientation/psychorientation/InterfaceInfoEleve.cs @@ -13,7 +13,6 @@ namespace psychorientation public partial class InterfaceInfoEleve : UserControl { Eleve eleve; - List<string> listClasse; public InterfaceInfoEleve() { InitializeComponent(); diff --git a/psychorientation/psychorientation/psychorientation.csproj b/psychorientation/psychorientation/psychorientation.csproj index 16f7cf56cedd4caa0ad068a8c8f194510a9fd518..b5934bb014aa83862d3ad4403566ef7accf577cb 100644 --- a/psychorientation/psychorientation/psychorientation.csproj +++ b/psychorientation/psychorientation/psychorientation.csproj @@ -57,6 +57,12 @@ <Compile Include="InterfaceClasse.Designer.cs"> <DependentUpon>InterfaceClasse.cs</DependentUpon> </Compile> + <Compile Include="InterfaceInfoCompletEleve.cs"> + <SubType>Form</SubType> + </Compile> + <Compile Include="InterfaceInfoCompletEleve.Designer.cs"> + <DependentUpon>InterfaceInfoCompletEleve.cs</DependentUpon> + </Compile> <Compile Include="ListeEleve.cs"> <SubType>Form</SubType> </Compile> @@ -80,10 +86,13 @@ <Compile Include="Note.cs" /> <Compile Include="Program.cs" /> <Compile Include="Properties\AssemblyInfo.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> <EmbeddedResource Include="InterfaceClasse.resx"> - <DependentUpon>InterfaceClasse.cs</DependentUpon> </EmbeddedResource> <EmbeddedResource Include="ListeEleve.resx"> + <EmbeddedResource Include="InterfaceInfoCompletEleve.resx"> + <DependentUpon>InterfaceInfoCompletEleve.cs</DependentUpon> + </EmbeddedResource> <DependentUpon>ListeEleve.cs</DependentUpon> </EmbeddedResource> <EmbeddedResource Include="InterfaceInfoEleve.resx"> @@ -99,8 +108,7 @@ </EmbeddedResource> <Compile Include="Properties\Resources.Designer.cs"> <AutoGen>True</AutoGen> - <DependentUpon>Resources.resx</DependentUpon> - <DesignTime>True</DesignTime> + <AutoGen>True</AutoGen> </Compile> <None Include="packages.config" /> <None Include="Properties\Settings.settings"> @@ -114,13 +122,7 @@ </Compile> </ItemGroup> <ItemGroup> - <None Include="App.config" /> </ItemGroup> <ItemGroup> - <None Include="Resources\passer.png" /> - </ItemGroup> - <ItemGroup> - <None Include="Resources\salleV1.png" /> - </ItemGroup> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> </Project> \ No newline at end of file