1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
| Directory.CreateDirectory("C:\\Mon Dossier");
textBoxtotal.Text = textBox100.Text + textBox101.Text + textBox102.Text + textBox103.Text + textBox104.Text + textBox105.Text + textBox106.Text +
textBox107.Text + textBox108.Text + textBox109.Text + textBox110.Text + textBox111.Text + textBox112.Text + textBox113.Text + textBox114.Text +
textBox115.Text + textBox116.Text + textBox117.Text + textBox118.Text +
textBox7.Text + textBox6.Text + textBox5.Text + textBox4.Text + textBox3.Text + textBox2.Text + textBox1.Text;
using (System.IO.StreamWriter file = new System.IO.StreamWriter("C:\\Mon Dossier\\ListeClés.txt", true))
{
file.WriteLine(textBoxtotal.Text);
}
richTextBox1.Multiline = true;
richTextBox1.Text += Environment.NewLine + textBoxtotal.Text;
Directory.CreateDirectory("C:\\Mon Dossier");
int t1 = Int32.Parse(textBox1.Text, System.Globalization.NumberStyles.HexNumber);
int t2 = Int32.Parse(textBox2.Text, System.Globalization.NumberStyles.HexNumber);
int t3 = Int32.Parse(textBox3.Text, System.Globalization.NumberStyles.HexNumber);
int t4 = Int32.Parse(textBox4.Text, System.Globalization.NumberStyles.HexNumber);
int t5 = Int32.Parse(textBox5.Text, System.Globalization.NumberStyles.HexNumber);
int t6 = Int32.Parse(textBox6.Text, System.Globalization.NumberStyles.HexNumber);
int t7 = Int32.Parse(textBox7.Text, System.Globalization.NumberStyles.HexNumber);
if (t1 < 0xFF)
{
t1++;
textBox1.Text = string.Format("{0:X2}", t1);
}
else
{
t1 = 00;
textBox1.Text = string.Format("{0:X2}", t1);
if (t2 < 0xFF)
{
t2++;
textBox2.Text = string.Format("{0:X2}", t2);
}
else
{
t2 = 00;
textBox2.Text = string.Format("{0:X2}", t2);
if (t3 < 0xFF)
{
t3++;
textBox3.Text = string.Format("{0:X2}", t3);
}
else
{
t3 = 00;
textBox3.Text = string.Format("{0:X2}", t3);
if (t4 < 0xFF)
{
t4++;
textBox4.Text = string.Format("{0:X2}", t4);
}
else
{
t4 = 00;
textBox4.Text = string.Format("{0:X2}", t4);
if (t5 < 0xFF)
{
t5++;
textBox5.Text = string.Format("{0:X2}", t5);
}
else
{
t5 = 00;
textBox5.Text = string.Format("{0:X2}", t5);
if (t6 < 0xFF)
{
t6++;
textBox6.Text = string.Format("{0:X2}", t6);
}
else
{
t6 = 00;
textBox6.Text = string.Format("{0:X2}", t6);
if (t7 < 0xFF)
{
t7++;
textBox7.Text = string.Format("{0:X2}", t7);
}
using (System.IO.StreamWriter file = new System.IO.StreamWriter("C:\\Mon Dossier\\ListeClés.txt", true))
{
file.WriteLine(textBoxtotal.Text);
}
richTextBox1.Multiline = true;
richTextBox1.Text += Environment.NewLine + textBoxtotal.Text;
}
}
}
}
}
} |
Partager