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:
|
List<Point> Kopie = new List<Point>();
Kopie = sorted;
for (int i = 0; i < points.Count - 1; i++)
{
richTextBox1.AppendText(Environment.NewLine + sorted[i] + Kopie[i]);
}
Point Links = new Point();
Point Rechts = new Point();
Point Oben = new Point();
Point Unten = new Point();
for (int i = 0; i < sorted.Count;i++)
{
Links =Punkt1;
Rechts =Punkt2;
Oben =Punkt3;
Unten.X =Punkt4;
if (Kopie.Contains(Links)==true || Kopie.Contains(Rechts) == true || Kopie.Contains(Oben) == true || Kopie.Contains(Unten) == true)
{
Punkt = sorted[i];
Kopie.Remove(Punkt);
richTextBox1.AppendText(Environment.NewLine + "Löschen" + ": " + sorted[i] + "Count: " + sorted.Count);
}
else
{
ecken.Add(sorted[i]);
richTextBox1.AppendText(Environment.NewLine + "Treffer" + ": " + sorted[i]);
}
}
|