⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 painttreenode.cs

📁 破解的飞信源代码
💻 CS
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -