private void letsdothis_Click object sender EventArgs this after Text

 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
private void letsdothis_Click(object sender, EventArgs e)
{
this.after.Text = null;
string[] Head = { "Дата выпуска", "Год выпуска", "Жанр", "Разработчик", "Издатель", "Игровые платформы" };
string a;
int tmp = 0;
string [] Before;
Before = this.before.Text.Split(new Char[] {'\n'});
a = Before[tmp];
for (int i=0; i < Head.Length;i++)
{
for(int z = 0; z<Before.Length;z++)
{
if(Before[z].Contains(Head[i]))
{
a = Before[tmp];
Before[tmp] = Before[z];
Before[z] = Before[tmp];
tmp++;
}
}
}
for (int i = 0; i < Before.Length;i++){
this.after.Text += Before[i] + "\n";
}
}