forked from ExileLord/Open-GHTCP
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathAbsTreeNode1_1.cs
67 lines (62 loc) · 1.73 KB
/
AbsTreeNode1_1.cs
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
using System;
using System.Collections.Generic;
using System.Drawing;
namespace GHNamespaceB
{
public abstract class AbsTreeNode11 : AbstractTreeNode1
{
public override int CompareTo(object target)
{
if (!target.GetType().Equals(GetType()))
{
return -1;
}
if (((AbsTreeNode11) target).Text == Text)
{
return 0;
}
return 1;
}
public T[] method_7<T>()
{
return method_8<T>().ToArray();
}
public List<T> method_8<T>()
{
List<T> list = new List<T>();
if (Nodes[0] is AbstractTreeNode1)
{
System.Collections.IEnumerator enumerator = Nodes.GetEnumerator();
try
{
while (enumerator.MoveNext())
{
T item = (T) enumerator.Current;
list.Add(item);
}
return list;
}
finally
{
if (enumerator is IDisposable disposable)
{
disposable.Dispose();
}
}
}
foreach (AbstractTreeNode2 @class in Nodes)
{
list.Add((T) @class.vmethod_7());
}
return list;
}
public override Color GetColor()
{
return GetColor2IfPrevNodeIsColor1(Color.PowderBlue, Color.PaleTurquoise);
}
public override string GetText()
{
return string.Concat(GetNodeText(), " (", Nodes.Count, ")");
}
}
}