private void encadrerEntourer_Load(object sender, EventArgs e) { gram = new XmlDocument(); gram.Load(Application.StartupPath + @"\francais.xml"); CryptageEtHachage.DeCrypNode(gram.DocumentElement); suivant(); //for (int j = 0; j < 5; j++) //{ // s = gram.GetElementsByTagName("VerbesEtSujets")[0].InnerText.Split('=')[(int)ar[j]].Trim(' '); //mots.AddRange(s.Split('8')); //motsLabels = new Label[mots.Count]; // //pp[j] = new Panel(); pp[j].Size = new Size(750, 50); pp[j].BackColor = Color.Transparent; pp[j].Location = new Point(20, j * 50 + j * 5);// pp[j].MouseDown += pp_mousedwn; pp[j].MouseMove += pp_mousemove; pp[j].MouseUp += pp_mouseUp; // //this.Controls.Add(pp[j]); // for (int i = 0; i < mots.Count; i++) // { // Label l = new Label(); l.BackColor =; l.ForeColor = Color.Black; l.TextAlign = ContentAlignment.MiddleCenter; l.Font = new Font("Comic SAns MS", 8f); // l.Location = new Point(100 + i * 100, 50*j+10); // motsLabels[i] = l; // if (mots[i][mots[i].Length - 1] == '1') { mots[i] = mots[i].Remove(mots[i].Length - 1); answr1.Add(motsLabels[i]); } // else if (mots[i][mots[i].Length - 1] == '2') { mots[i] = mots[i].Remove(mots[i].Length - 1); answr2.Add(motsLabels[i]); } // motsLabels[i].Text = mots[i];motsLabels[i].MouseDown += lbl_mousemouve;motsLabels[i].MouseMove += lbl_mousedwn;panel1 .Controls.Add(motsLabels[i]); motsLabels[i].BringToFront(); // } // motsLabels = null; mots = new List<string>(); //} }
public Dictée() { InitializeComponent(); conjugaison = new XmlDocument(); conjugaison.Load(Application.StartupPath + @"\francais.xml"); CryptageEtHachage.DeCrypNode(conjugaison.DocumentElement); }
private void button3_Click(object sender, EventArgs e)//ex { sonssex = new string[26]; sonsEx.Load(Application.StartupPath + @"\francais.xml"); CryptageEtHachage.DeCrypNode(sonsEx.DocumentElement); sonssex = sonsEx.GetElementsByTagName("choicesSons")[0].InnerText.Split(','); timer1.Start(); x = new Bitmap(Application.StartupPath + @"\Pics\Lettres\cochericon.png"); panel2.Visible = false; theo = new Bitmap(Application.StartupPath + @"\Pics\Lettres\th.png"); pictureBox7.Image = theo; }
public jeux_verbes() { InitializeComponent(); dr = Variables.XmlReader(Application.StartupPath + "\\users.xml"); XmlDocument conjugaison = new XmlDocument(); conjugaison.Load(Application.StartupPath + @"\francais.xml"); CryptageEtHachage.DeCrypNode(conjugaison.DocumentElement); presentt = conjugaison.GetElementsByTagName("present"); passeCompose = conjugaison.GetElementsByTagName("passeCompose"); passesimple = conjugaison.GetElementsByTagName("passeSimple"); futursimple = conjugaison.GetElementsByTagName("futureSimple"); imparfait = conjugaison.GetElementsByTagName("imparfait"); }
public cours_Orthographe() { InitializeComponent(); XmlDocument conjugaison = new XmlDocument(); conjugaison.Load(Application.StartupPath + @"\francais.xml"); CryptageEtHachage.DeCrypNode(conjugaison.DocumentElement); TrueAnswers = conjugaison.GetElementsByTagName("TrueHom")[0].InnerText.Split(','); FalseAnswers = conjugaison.GetElementsByTagName("FalseHom")[0].InnerText.Split(','); }
private void Form1_Load(object sender, EventArgs e) { gram = new XmlDocument(); dr = Variables.XmlReader(Application.StartupPath + "\\users.xml"); 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; } CryptageEtHachage.DeCrypNode(gram.DocumentElement); }