For Spaces

 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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Threading;
namespace Spaces_CommonToBB
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void letsdothis_Click(object sender, EventArgs e)
{
after.Text = string.Empty;
string[] Head = { "Дата анонса", "Дата релиза", "Дата выпуска", "Дата выхода", "Год выпуска", "Год выхода", "Жанр", "Разработчик", "Издатель", "Платформы" };
string [] Before;
int tmp = 0;
Before = this.before.Text.Split(new Char[] {'\n'});
for (int i=0; i < Head.Length;i++)
{
for(int z = 0; z<Before.Length; z++)
{
if(Before[z].Contains(Head[i]))
{
this.after.Text += Before[z] + "\n";
}
}
}
for (int i = 0; i < Before.Length; i++)
{
for (int z = 0; z < Head.Length; z++)
{
if (Before[i].Contains(Head[z]))
{
tmp = 1;
}
}
if (tmp != 1)
{
this.after.Text += Before[i] + "\n";
}
tmp = 0;
}
}
}
}