Skip to content
Snippets Groups Projects
Commit f9ae4857 authored by Loïc Gross's avatar Loïc Gross
Browse files
parents cd4aa7ed feba7878
Branches
1 merge request!12Ajout ListeEleve
Showing with 149 additions and 57 deletions
psychorientation/images/icones/passer.png

1.88 KiB

psychorientation/images/icones/suivant.png

16.9 KiB

...@@ -37,10 +37,13 @@ ...@@ -37,10 +37,13 @@
// //
// pb_action_suivante // pb_action_suivante
// //
this.pb_action_suivante.BackColor = System.Drawing.SystemColors.ControlDark; this.pb_action_suivante.BackColor = System.Drawing.SystemColors.Control;
this.pb_action_suivante.Location = new System.Drawing.Point(922, 471); this.pb_action_suivante.BackgroundImage = global::psychorientation.Properties.Resources.passer;
this.pb_action_suivante.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.pb_action_suivante.InitialImage = null;
this.pb_action_suivante.Location = new System.Drawing.Point(1225, 651);
this.pb_action_suivante.Name = "pb_action_suivante"; this.pb_action_suivante.Name = "pb_action_suivante";
this.pb_action_suivante.Size = new System.Drawing.Size(90, 77); this.pb_action_suivante.Size = new System.Drawing.Size(120, 120);
this.pb_action_suivante.TabIndex = 0; this.pb_action_suivante.TabIndex = 0;
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);
...@@ -49,7 +52,7 @@ ...@@ -49,7 +52,7 @@
// //
this.pb_liste_eleves.Location = new System.Drawing.Point(12, 12); this.pb_liste_eleves.Location = new System.Drawing.Point(12, 12);
this.pb_liste_eleves.Name = "pb_liste_eleves"; this.pb_liste_eleves.Name = "pb_liste_eleves";
this.pb_liste_eleves.Size = new System.Drawing.Size(90, 78); this.pb_liste_eleves.Size = new System.Drawing.Size(100, 100);
this.pb_liste_eleves.TabIndex = 1; this.pb_liste_eleves.TabIndex = 1;
this.pb_liste_eleves.TabStop = false; this.pb_liste_eleves.TabStop = false;
this.pb_liste_eleves.Click += new System.EventHandler(this.Pb_liste_eleves_Click); this.pb_liste_eleves.Click += new System.EventHandler(this.Pb_liste_eleves_Click);
...@@ -57,10 +60,11 @@ ...@@ -57,10 +60,11 @@
// lbl_date // lbl_date
// //
this.lbl_date.AutoSize = true; this.lbl_date.AutoSize = true;
this.lbl_date.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbl_date.BackColor = System.Drawing.Color.Transparent;
this.lbl_date.Location = new System.Drawing.Point(108, 12); this.lbl_date.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbl_date.Location = new System.Drawing.Point(118, 12);
this.lbl_date.Name = "lbl_date"; this.lbl_date.Name = "lbl_date";
this.lbl_date.Size = new System.Drawing.Size(142, 24); this.lbl_date.Size = new System.Drawing.Size(163, 29);
this.lbl_date.TabIndex = 2; this.lbl_date.TabIndex = 2;
this.lbl_date.Text = "Chargement..."; this.lbl_date.Text = "Chargement...";
// //
...@@ -68,16 +72,22 @@ ...@@ -68,16 +72,22 @@
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1024, 560); this.BackColor = System.Drawing.SystemColors.Control;
this.BackgroundImage = global::psychorientation.Properties.Resources.salleV1;
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.ClientSize = new System.Drawing.Size(1357, 783);
this.Controls.Add(this.lbl_date); this.Controls.Add(this.lbl_date);
this.Controls.Add(this.pb_liste_eleves); this.Controls.Add(this.pb_liste_eleves);
this.Controls.Add(this.pb_action_suivante); this.Controls.Add(this.pb_action_suivante);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.DoubleBuffered = true;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.MaximizeBox = false; this.MaximizeBox = false;
this.Name = "InterfaceClasse"; this.Name = "InterfaceClasse";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Psychorientation"; this.Text = "Psychorientation";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.Load += new System.EventHandler(this.Form1_Load); this.Load += new System.EventHandler(this.Form1_Load);
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_liste_eleves)).EndInit();
this.ResumeLayout(false); this.ResumeLayout(false);
......
...@@ -12,12 +12,9 @@ namespace psychorientation ...@@ -12,12 +12,9 @@ namespace psychorientation
{ {
public partial class InterfaceClasse : Form public partial class InterfaceClasse : Form
{ {
private List<String> libele_mois = new List<String>() private Libelle libelle = Libelle.GetInstance();
{"Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre"}; private int moisActuel = 8;
private List<String> libele_niveau = new List<String>() private int anneeActuelle = 0;
{"Seconde", "Première", "Terminale"};
private int mois_actuel = 8;
private int annee_actuelle = 0;
public InterfaceClasse() public InterfaceClasse()
{ {
...@@ -27,11 +24,10 @@ namespace psychorientation ...@@ -27,11 +24,10 @@ namespace psychorientation
private void Form1_Load(object sender, EventArgs e) private void Form1_Load(object sender, EventArgs e)
{ {
lbl_date.Text = libele_mois[(mois_actuel % 12)] + " " + libele_niveau[annee_actuelle]; lbl_date.Text = libelle.Mois(moisActuel % 12) + " " + libelle.Niveau(anneeActuelle);
TypeMessage tm = TypeMessage.INFORMATION; Message m_accueil = new Message(-1, "Bonjour apprenti prof, vous allez apprendre à éduquer des joueurs !! ", "Début", TypeMessage.INFORMATION);
Message m = new Message(-1,"Bonjour apprenti prof, vous allez apprendre à éduquer des joueurs !! ","Début",tm); m_accueil.ShowDialog();
m.ShowDialog();
} }
private void Pb_action_suivante_Click(object sender, EventArgs e) private void Pb_action_suivante_Click(object sender, EventArgs e)
...@@ -44,28 +40,42 @@ namespace psychorientation ...@@ -44,28 +40,42 @@ namespace psychorientation
} }
// Passe au mois suivant. // Passe au mois suivant.
mois_actuel++; moisActuel++;
switch(mois_actuel) switch(moisActuel)
{ {
case 17: // Fin de la 1ère année : Début Juin. case 17: // Fin de la 1ère année : Début Juin.
mois_actuel = 20; moisActuel = 20;
annee_actuelle = 1; anneeActuelle = 1;
break; break;
case 29: // Fin de la 2nde année : Début Juin. case 29: // Fin de la 2nde année : Début Juin.
mois_actuel = 32; moisActuel = 32;
annee_actuelle = 2; anneeActuelle = 2;
break; break;
case 42: // Fin de la 3ème année : Debut Juillet. case 42: // Fin de la 3ème année : Debut Juillet.
// Fin de la partie. // Fin de la partie.
Message m_fin = new Message(-1, "Vous avez fini la phase bêta de ce jeu !\n" +
"Bravo à vous et n'hésitez pas à essayer à nouveau pour " +
"améliorer votre compréhension du monde extérieur.",
"Félicitations",
TypeMessage.INFORMATION
);
m_fin.ShowDialog();
Close();
break; break;
} }
lbl_date.Text = libele_mois[(mois_actuel % 12)] + " " + libele_niveau[annee_actuelle]; lbl_date.Text = libelle.Mois(moisActuel % 12) + " " + libelle.Niveau(anneeActuelle);
} }
private void Pb_liste_eleves_Click(object sender, EventArgs e) private void Pb_liste_eleves_Click(object sender, EventArgs e)
{ {
} }
private void InterfaceClasse_SizeChanged(object sender, EventArgs e)
{
PictureBox pb = pb_action_suivante;
pb.Location = new Point(Size.Width - pb.Width - 32, Size.Height - pb.Height - 32);
}
} }
} }
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace psychorientation
{
class Libelle
{
private List<string> libele_mois = new List<string>()
{"Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre"};
private List<string> libele_niveau = new List<string>()
{"Seconde", "Première", "Terminale"};
private static Libelle instance;
public Libelle() {}
public static Libelle GetInstance()
{
if(Libelle.instance == null)
{
Libelle.instance = new Libelle();
return Libelle.instance;
}
else
{
return Libelle.instance;
}
}
public string Mois(int n)
{
return this.libele_mois[n];
}
public string Niveau(int n)
{
return this.libele_niveau[n];
}
}
}
...@@ -8,10 +8,10 @@ ...@@ -8,10 +8,10 @@
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace psychorientation.Properties namespace psychorientation.Properties {
{ using System;
/// <summary> /// <summary>
/// Une classe de ressource fortement typée destinée, entre autres, à la consultation des chaînes localisées. /// Une classe de ressource fortement typée destinée, entre autres, à la consultation des chaînes localisées.
/// </summary> /// </summary>
...@@ -19,53 +19,65 @@ namespace psychorientation.Properties ...@@ -19,53 +19,65 @@ namespace psychorientation.Properties
// à l'aide d'un outil, tel que ResGen ou Visual Studio. // à l'aide d'un outil, tel que ResGen ou Visual Studio.
// Pour ajouter ou supprimer un membre, modifiez votre fichier .ResX, puis réexécutez ResGen // Pour ajouter ou supprimer un membre, modifiez votre fichier .ResX, puis réexécutez ResGen
// avec l'option /str ou régénérez votre projet VS. // avec l'option /str ou régénérez votre projet VS.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources internal class Resources {
{
private static global::System.Resources.ResourceManager resourceMan; private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture; private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() internal Resources() {
{
} }
/// <summary> /// <summary>
/// Retourne l'instance ResourceManager mise en cache utilisée par cette classe. /// Retourne l'instance ResourceManager mise en cache utilisée par cette classe.
/// </summary> /// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager internal static global::System.Resources.ResourceManager ResourceManager {
{ get {
get if (object.ReferenceEquals(resourceMan, null)) {
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("psychorientation.Properties.Resources", typeof(Resources).Assembly); global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("psychorientation.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp; resourceMan = temp;
} }
return resourceMan; return resourceMan;
} }
} }
/// <summary> /// <summary>
/// Remplace la propriété CurrentUICulture du thread actuel pour toutes /// Remplace la propriété CurrentUICulture du thread actuel pour toutes
/// les recherches de ressources à l'aide de cette classe de ressource fortement typée. /// les recherches de ressources à l'aide de cette classe de ressource fortement typée.
/// </summary> /// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture internal static global::System.Globalization.CultureInfo Culture {
{ get {
get
{
return resourceCulture; return resourceCulture;
} }
set set {
{
resourceCulture = value; resourceCulture = value;
} }
} }
/// <summary>
/// Recherche une ressource localisée de type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap passer {
get {
object obj = ResourceManager.GetObject("passer", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Recherche une ressource localisée de type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap salleV1 {
get {
object obj = ResourceManager.GetObject("salleV1", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
} }
} }
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
mimetype: application/x-microsoft.net.object.binary.base64 mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64 mimetype: application/x-microsoft.net.object.soap.base64
...@@ -60,6 +60,7 @@ ...@@ -60,6 +60,7 @@
: and then encoded with base64 encoding. : 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: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:element name="root" msdata:IsDataSet="true">
<xsd:complexType> <xsd:complexType>
<xsd:choice maxOccurs="unbounded"> <xsd:choice maxOccurs="unbounded">
...@@ -68,9 +69,10 @@ ...@@ -68,9 +69,10 @@
<xsd:sequence> <xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" /> <xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" /> <xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" /> <xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" /> <xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="assembly"> <xsd:element name="assembly">
...@@ -85,9 +87,10 @@ ...@@ -85,9 +87,10 @@
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> <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:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence> </xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> <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="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType> </xsd:complexType>
</xsd:element> </xsd:element>
<xsd:element name="resheader"> <xsd:element name="resheader">
...@@ -109,9 +112,16 @@ ...@@ -109,9 +112,16 @@
<value>2.0</value> <value>2.0</value>
</resheader> </resheader>
<resheader name="reader"> <resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="passer" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\passer.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="salleV1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\salleV1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root> </root>
\ No newline at end of file
psychorientation/psychorientation/Resources/passer.png

1.88 KiB

psychorientation/psychorientation/Resources/salleV1.png

149 KiB

...@@ -70,6 +70,7 @@ ...@@ -70,6 +70,7 @@
<Compile Include="InterfaceInfoEleve.Designer.cs"> <Compile Include="InterfaceInfoEleve.Designer.cs">
<DependentUpon>InterfaceInfoEleve.cs</DependentUpon> <DependentUpon>InterfaceInfoEleve.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Libelle.cs" />
<Compile Include="Message.cs"> <Compile Include="Message.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
...@@ -99,6 +100,7 @@ ...@@ -99,6 +100,7 @@
<Compile Include="Properties\Resources.Designer.cs"> <Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen> <AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon> <DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile> </Compile>
<None Include="packages.config" /> <None Include="packages.config" />
<None Include="Properties\Settings.settings"> <None Include="Properties\Settings.settings">
...@@ -114,5 +116,11 @@ ...@@ -114,5 +116,11 @@
<ItemGroup> <ItemGroup>
<None Include="App.config" /> <None Include="App.config" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<None Include="Resources\passer.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\salleV1.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project> </Project>
\ No newline at end of file
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