Skip to content

Commit f2e4cc5

Browse files
second
1 parent 129b60f commit f2e4cc5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+4406
-3038
lines changed

.vs/Start/v16/.suo

-16 KB
Binary file not shown.

Cours.designer.cs

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cours.resx

Lines changed: 2704 additions & 2704 deletions
Large diffs are not rendered by default.

CryptageEtHachage.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ public static string DeChiffrer(string MotChiffre)
3030
return "??????????";
3131
DESCryptoServiceProvider cryptoProvider = GenerateKey();
3232
MemoryStream memoryStream = new MemoryStream(Convert.FromBase64String(MotChiffre));
33-
CryptoStream cryptoStream = new CryptoStream(memoryStream,
34-
cryptoProvider.CreateDecryptor(cryptoProvider.Key, cryptoProvider.IV), CryptoStreamMode.Read);
33+
CryptoStream cryptoStream = new CryptoStream(memoryStream,cryptoProvider.CreateDecryptor(cryptoProvider.Key, cryptoProvider.IV), CryptoStreamMode.Read);
3534
StreamReader reader = new StreamReader(cryptoStream);
3635
return reader.ReadToEnd();
3736
}
@@ -43,13 +42,15 @@ public static string DeChiffrer(string MotChiffre)
4342
public static void DeCrypNode(XmlNode x)
4443
{
4544
if (!x.HasChildNodes)
46-
{ x.InnerText = DeChiffrer(x.InnerText); }
45+
{
46+
x.InnerText = DeChiffrer(x.InnerText);
47+
}
4748

4849
else for (int i = 0; i < x.ChildNodes.Count; i++)
49-
{
50+
{
5051
DeCrypNode(x.ChildNodes[i]);
5152

52-
}
53+
}
5354

5455
}
5556
static string hash = "hashP@ss&ScorePr0jet2o2oH_I_H";

Dictation.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ public Dictée()
1919
{
2020
InitializeComponent();
2121
conjugaison = new XmlDocument();
22-
conjugaison.Load(Application.StartupPath + @"\conjugaison.xml"); CryptageEtHachage.DeCrypNode(conjugaison .DocumentElement);
22+
conjugaison.Load(Application.StartupPath + @"\conjugaison.xml");
23+
CryptageEtHachage.DeCrypNode(conjugaison .DocumentElement);
2324
}
2425
Random r = new Random ();string vrai11, vrai12, vrai13, vrai21, vrai22; int a = 1;
2526

ExPro.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ private void button2_Click(object sender, EventArgs e)//recouter
3737
DataRow[] dr;
3838
private void Exercice1ReconaissanceDeSons_Load(object sender, EventArgs e)//load
3939
{
40-
c = 0; z = 0; k = 0;
41-
40+
c = 0; z = 0; k = 0;
41+
label4.Hide();
4242
dr = Variables.XmlReader(Application.StartupPath + "\\users.xml");
4343
w= int.Parse(dr[0]["Prononciation"].ToString());
4444

Gram.cs

Lines changed: 79 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ public partial class cours_de_grammaire : Form
1818
binding binding2 = new binding();
1919
XmlDocument gram;
2020

21-
public bool cours, gram2=false;public static int[] scores = new int[10];
21+
public bool cours, gram2=false;
22+
public static int[] scores = new int[10];
2223
public cours_de_grammaire()
2324
{
2425
InitializeComponent();
@@ -27,8 +28,19 @@ public cours_de_grammaire()
2728

2829
private void Form1_Load(object sender, EventArgs e)
2930
{
30-
gram = new XmlDocument(); dr = Variables.XmlReader(Application.StartupPath + "\\users.xml");
31-
gram.Load(Application.StartupPath + @"\Gramm.xml");if (gram2) panel2.Visible = true; if (!cours) { button11.Click += lvl1_grams; button3.Click += lvl1_grams; button4.Click += lvl1_grams; button7.Click += lvl1_grams; button6.Click += lvl1_grams; button9.Click += lvl1_grams; }
31+
gram = new XmlDocument();
32+
dr = Variables.XmlReader(Application.StartupPath + "\\users.xml");
33+
gram.Load(Application.StartupPath + @"\Gramm.xml");
34+
if (gram2) panel2.Visible = true;
35+
if (!cours)
36+
{
37+
button11.Click += lvl1_grams
38+
; button3.Click += lvl1_grams;
39+
button4.Click += lvl1_grams;
40+
button7.Click += lvl1_grams;
41+
button6.Click += lvl1_grams;
42+
button9.Click += lvl1_grams;
43+
}
3244
CryptageEtHachage.DeCrypNode(gram.DocumentElement);
3345
}
3446

@@ -37,10 +49,7 @@ private void button1_Click(object sender, EventArgs e)
3749

3850
}
3951

40-
//private void button2_Click(object sender, EventArgs e)
41-
//{
42-
// button3.Visible =button4.Visible = button5.Visible = true;button2.Visible = false;
43-
//}
52+
4453
private void button3_Click(object sender, EventArgs e)
4554
{
4655

@@ -49,7 +58,7 @@ private void button3_Click(object sender, EventArgs e)
4958
else
5059
{
5160
Cours cf = new Cours();
52-
// this.Close(); cf.imageConv = pronomspersonnles; cf.Show();
61+
5362
cf.debut = 31;cf.fin = 33;cf.Show();
5463
}
5564

@@ -60,35 +69,26 @@ private void button4_Click(object sender, EventArgs e)
6069
else
6170
{
6271
Cours cf = new Cours();
63-
// this.Close(); cf.imageConv = pronomspersonnles; cf.Show();
72+
6473
cf.debut = 27; cf.fin = 29; cf.Show();
6574

66-
// cf.imageConv = singulier; cf.Show();
6775
}
68-
//button3.Visible = false; button4.Visible = false; button5.Visible = false; binding2.rand = ComMethodes.Generate(10, 16); binding2.dest = 2;
69-
//binding2.depart = 6;binding2.lecon = "SinPlu"; binding2.Location = new Point(200, 150); this.Controls.Add(binding2);
76+
7077
}
7178

72-
//private void button5_Click(object sender, EventArgs e)
73-
//{
74-
// button5.Click += lvl1_grams;
75-
// button3.Visible = false; button4.Visible = false; button5.Visible = false; binding2.rand = ComMethodes.Generate(6, 10); binding2.dest = 6;
76-
// binding2.depart = 6; binding2.lecon = "Adjectifs"; binding2.Location = new Point(200, 150); this.Controls.Add(binding2);
77-
//}
79+
7880

7981
private void button7_Click(object sender, EventArgs e)
8082
{
8183
panconv = panel1;if(!cours) pictureBox1.Visible = true;
8284
else
8385
{
8486
Cours cf = new Cours();
85-
// this.Close(); cf.imageConv = pronomspersonnles; cf.Show();
87+
8688
cf.debut = 17; cf.fin = 19; cf.Show();
8789

88-
// cf.imageConv = nompropre; cf.Show();
8990
}
90-
//phraseoEx ep = new phraseoEx();this.Controls.Add(ep);ep.Dock = DockStyle.Fill;
91-
//ep.Show();ep.BringToFront();
91+
9292
}
9393

9494
private void button6_Click(object sender, EventArgs e)
@@ -99,7 +99,7 @@ private void button6_Click(object sender, EventArgs e)
9999
Cours cf = new Cours();
100100
cf.debut = 15; cf.fin = 17; cf.Show();
101101

102-
// cf.imageConv = femiMas; cf.Show();
102+
103103
}
104104
}
105105

@@ -111,29 +111,29 @@ private void panel1_Paint(object sender, PaintEventArgs e)
111111
private void button8_Click(object sender, EventArgs e)
112112
{
113113

114-
//button8.Click += lvl1_grams;
114+
115115
}
116-
117116
private void button9_Click(object sender, EventArgs e)
118117
{
119118
panconv = panel1;if(!cours) pictureBox1.Visible = true;
120119
else
121120
{
122-
// this.Close(); cf.imageConv = types; cf.Show();
121+
123122
Cours cf = new Cours();cf.conjugaison = false;
124123
cf.debut = 22; cf.fin = 27; cf.Show();
125124
}
126125
}
127-
128126
private void lvl1_grams(object sender, EventArgs e)
129127
{
130-
Button lb = (Button )sender;binding2.Dispose(); binding2 = new binding(); userconv = binding2;
131-
132-
panel1.Hide();panel2.Visible = false;
133-
int a = int.Parse(lb.Tag.ToString().Split(',')[0]), b = int.Parse(lb.Tag.ToString().Split(',')[1]);
134-
binding2.rand = ComMethodes.Generate(a, b); binding2.dest = int.Parse(lb.Tag.ToString().Split(',')[3]);
135-
binding2.depart = int.Parse(lb.Tag.ToString().Split(',')[2]); binding2.lecon = lb.Tag.ToString().Split(',')[5]; binding2.Location = new Point(200, 150);binding2.panl = panconv; this.Controls.Add(binding2);
136-
userconv.Visible = true;
128+
Button lb = (Button)sender; binding2.Dispose();
129+
130+
panel1.Hide(); panel2.Visible = false;
131+
int a = int.Parse(lb.Tag.ToString().Split(',')[0]), b = int.Parse(lb.Tag.ToString().Split(',')[1]);
132+
binding2 = new binding(lb.Tag.ToString().Split(',')[5], int.Parse(lb.Tag.ToString().Split(',')[3]), int.Parse(lb.Tag.ToString().Split(',')[2]), panconv, ComMethodes.Generate(a, b)); userconv = binding2;
133+
//binding2.rand = ComMethodes.Generate(a, b); binding2.dest = int.Parse(lb.Tag.ToString().Split(',')[3]);
134+
//binding2.depart = int.Parse(lb.Tag.ToString().Split(',')[2]); binding2.lecon = lb.Tag.ToString().Split(',')[5]; binding2.Location = new Point(200, 150);binding2.panl = panconv;
135+
binding2.Location = new Point(200, 150); this.Controls.Add(binding2);
136+
userconv.Visible = true;
137137
}
138138
private void button13_Click(object sender, EventArgs e)
139139
{
@@ -147,8 +147,6 @@ private void button13_Click(object sender, EventArgs e)
147147
{
148148
Cours cf = new Cours(); cf.conjugaison = false;
149149
cf.debut = 20; cf.fin = 22; cf.Show();
150-
151-
// this.Close(); cf.imageConv = sujetVerbe; cf.Show();
152150
}
153151
}
154152
Panel panconv;
@@ -164,7 +162,6 @@ private void button10_Click(object sender, EventArgs e)
164162
}
165163
else
166164
{
167-
// this.Close(); cf.imageConv = phrase; cf.Show();
168165
Cours cf = new Cours(); cf.conjugaison = false;
169166
cf.debut = 1;cf.fin = 5;cf.Show();
170167
}
@@ -176,10 +173,8 @@ private void button11_Click(object sender, EventArgs e)
176173
panconv = panel2;if(!cours) pictureBox1.Visible = true;
177174
else
178175
{
179-
// this.Close(); cf.imageConv = demonstratifs; cf.Show();
180176
Cours cf = new Cours();cf.conjugaison = false;
181177
cf.debut = 5; cf.fin = 7;cf.Show();
182-
183178
}
184179
}
185180

@@ -191,35 +186,59 @@ private void panel2_Paint(object sender, PaintEventArgs e)
191186
private void button15_Click(object sender, EventArgs e)
192187
{
193188
panconv = panel2;
194-
panel1.Hide(); panel2.Hide();if (!cours)
189+
panel1.Hide();
190+
panel2.Hide();
191+
if (!cours)
195192
{
196-
pictureBox1.Visible = true; choixMultiple.len = 6; choixMultiple.max = 10; choixMultiple choiprn = new choixMultiple();choiprn.pan = panconv; userconv = choiprn; userconv.Visible = true; choiprn.rands = ComMethodes.Generate(6, 10); choiprn.lecon = "Posses"; choiprn.Show(); choiprn.BringToFront();
197-
198-
this.Controls.Add(choiprn); choiprn.Dock = DockStyle.Fill; pictureBox1.BringToFront();
193+
pictureBox1.Visible = true;
194+
choixMultiple choiprn = new choixMultiple(ComMethodes.Generate(6, 10), "Posses", panconv, 6, 10, "Francais");
195+
196+
197+
userconv = choiprn;
198+
userconv.Visible = true;
199+
choiprn.Show();
200+
choiprn.BringToFront();
201+
this.Controls.Add(choiprn);
202+
choiprn.Dock = DockStyle.Fill;
203+
pictureBox1.BringToFront();
199204
}
200205
else
201206
{
202-
Cours cf = new Cours(); cf.conjugaison = false;
203-
cf.debut = 29; cf.fin = 31; cf.Show();
207+
Cours cf = new Cours();
208+
cf.conjugaison = false;
209+
cf.debut = 29;
210+
cf.fin = 31;
211+
cf.Show();
204212

205-
// this.Close(); cf.imageConv = possessifs; cf.Show();
206213
}
207214
}
208215
UserControl userconv;
209216
private void button14_Click(object sender, EventArgs e)
210-
{ // gram = new XmlDocument();
211-
// gram.Load(Application.StartupPath + @"\ExempleDeXml.xml");
212-
panconv = panel1;
213-
if (!cours) {
214-
panel1.Hide(); panel2.Hide(); choixMultiple.len = 7; choixMultiple.max = 10; choixMultiple choiADj = new choixMultiple(); userconv = choiADj;choiADj.pan = panconv; userconv.Visible = true; choiADj.rands = ComMethodes.Generate(7, 10); choiADj.lecon = "Adjectifs"; choiADj.Show(); choiADj.BringToFront();
215-
this.Controls.Add(choiADj); choiADj.Dock = DockStyle.Fill;
216-
pictureBox1.Visible = true; pictureBox1.BringToFront();
217+
{
218+
panconv = panel1;
219+
panel1.Hide();
220+
panel2.Hide();
221+
if (!cours)
222+
{
223+
224+
choixMultiple choiADj = new choixMultiple(ComMethodes.Generate(7, 10), "Adjectifs", panconv, 7, 10, "Francais");
225+
226+
userconv = choiADj;
227+
userconv.Visible = true;
228+
choiADj.Show();
229+
choiADj.BringToFront();
230+
this.Controls.Add(choiADj);
231+
choiADj.Dock = DockStyle.Fill;
232+
pictureBox1.BringToFront();
217233
}
218234
else
219235
{
220-
// cf.imageConv = adjQualificatifs; cf.Show();
221-
Cours cf = new Cours();cf.conjugaison = false;
222-
cf.debut = 7; cf.fin = 15; cf.Show();
236+
237+
Cours cf = new Cours();
238+
cf.conjugaison = false;
239+
cf.debut = 7;
240+
cf.fin = 15;
241+
cf.Show();
223242

224243
}
225244
}
@@ -261,7 +280,10 @@ private void button1_Click_1(object sender, EventArgs e)
261280
}
262281

263282
private void pictureBox1_Click(object sender, EventArgs e)
264-
{panconv.Visible = true;userconv.Hide(); this.BackgroundImage = b;
283+
{
284+
panconv.Visible = true;
285+
userconv.Hide();
286+
this.BackgroundImage = b;
265287
pictureBox1.Visible = false;
266288
}
267289

Gram.designer.cs

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Intro.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Login.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)