Before this before Text Split new Char for int Before Length if Before

 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
Before = this.before.Text.Split(new Char[] {'\n'});
for (int i = 0; i < Before.Length; i++)
{
if (Before[i].Contains("Системные требования"))
{
tmp = 1;
}
if (tmp == 1)
{
Before[i] = null;
}
Before = Before.Where(n => !string.IsNullOrEmpty(n)).ToArray();
///////////
tmp = 0;
string[] SysReq;
SysReq = this.before.Text.Split(new char[] {'\n'});
for (int i = 0; i < SysReq.Length; i++)
{
if(SysReq[i].Contains("Системные требования"))
{
tmp = 1;
break;
}
else {
SysReq[i] = null;
}
}
SysReq = SysReq.Where(n => !string.IsNullOrEmpty(n)).ToArray();