painttreenode.cs
来自「破解的飞信源代码」· CS 代码 · 共 94 行
CS
94 行
namespace Imps.Client.Pc.BizControls
{
using System;
using System.Drawing;
using System.Windows.Forms;
public class PaintTreeNode : TreeNode
{
private ColumnCollection _columns = new ColumnCollection();
private bool _isSuspend;
internal PaintTreeNodeCollection _nodes = new PaintTreeNodeCollection();
public Rectangle PaintTreeNodeBounds;
public object Tag;
public PaintTreeNode()
{
this._nodes.OnNodeAdded += new NodeAdded(this._nodes_OnNodeAdded);
this._nodes.OnNodeInserted += new NodeInserted(this._nodes_OnNodeInserted);
this._nodes.OnNodeClear += new NodeClear(this._nodes_OnNodeClear);
this._nodes.OnNodeCount += new NodeCount(this._nodes_OnNodeCount);
this._nodes.OnNodeGot += new NodeGot(this._nodes_OnNodeGot);
this._nodes.OnNodeRemove += new NodeRemoveAt(this._nodes_OnNodeRemove);
this.Tag = null;
this.PaintTreeNodeBounds = new Rectangle(0, 0, 0, 0);
}
private int _nodes_OnNodeAdded(TreeNode node)
{
return base.Nodes.Add(node);
}
private void _nodes_OnNodeClear()
{
base.Nodes.Clear();
}
private int _nodes_OnNodeCount()
{
return base.Nodes.Count;
}
private TreeNode _nodes_OnNodeGot(int index)
{
return this._nodes[index];
}
private int _nodes_OnNodeInserted(int index, TreeNode node)
{
base.Nodes.Insert(index, node);
return 0;
}
private void _nodes_OnNodeRemove(int index)
{
base.Nodes.RemoveAt(index);
}
public void Resume()
{
this._isSuspend = false;
}
public void Suspend()
{
this._isSuspend = true;
}
public ColumnCollection Columns
{
get
{
return this._columns;
}
}
public bool IsSuspend
{
get
{
return this._isSuspend;
}
}
public PaintTreeNodeCollection Nodes
{
get
{
return this._nodes;
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?