forked from ExileLord/Open-GHTCP
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathAbstractBaseTreeNode1.cs
52 lines (43 loc) · 1.17 KB
/
AbstractBaseTreeNode1.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
using System.Drawing;
using System.Windows.Forms;
namespace GHNamespaceB
{
public abstract class AbstractBaseTreeNode1 : TreeNode
{
public static bool Bool0 = true;
public virtual void vmethod_0()
{
if (!Bool0)
{
return;
}
Text = GetText();
ToolTipText = GetToolTipText();
BackColor = GetColor();
SelectedImageIndex = (ImageIndex = vmethod_1());
}
public abstract int vmethod_1();
public abstract void vmethod_2(ref int int0);
public virtual string GetText()
{
return GetNodeText();
}
public virtual string GetToolTipText()
{
return GetNodeText();
}
public abstract string GetNodeText();
public Color GetColor2IfPrevNodeIsColor1(Color color1, Color color2)
{
if (Parent != null && PrevNode != null && PrevNode.BackColor.Equals(color1))
{
return color2;
}
return color1;
}
public virtual Color GetColor()
{
return Color.Aqua;
}
}
}