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

📄 buddyselectiongroupnode.cs

📁 破解的飞信源代码
💻 CS
字号:
namespace Imps.Client.Pc.BizControls
{
    using System;
    using System.Text.RegularExpressions;
    using System.Windows.Forms;

    public class BuddySelectionGroupNode : ContactGroupNode
    {
        private System.Windows.Forms.CheckState _checkState;
        private BuddySelectionTree _tree;

        public BuddySelectionGroupNode(string sGroupName, System.Windows.Forms.CheckState checkState)
        {
            this.initClass(sGroupName);
            base.GroupName = sGroupName;
            this._checkState = checkState;
        }

        protected override void initClass(string groupName)
        {
            PaintTreeColumn column = new PaintTreeColumn();
            column.bDrawRectangle = true;
            column.bHoverRectangle = false;
            column.Column = 0;
            column.ColumnText = groupName;
            column.ColumnType = PaintTreeColumnType.CHECKBOX;
            base.Columns.Add(column);
            int length = groupName.LastIndexOf('(');
            int num2 = groupName.LastIndexOf(')');
            string text = groupName;
            string input = "";
            if ((num2 == (groupName.Length - 1)) && (num2 > length))
            {
                input = groupName.Substring(length + 1, (num2 - length) - 1);
                Regex regex = new Regex(@"^\d+$");
                if (regex.IsMatch(input))
                {
                    text = groupName.Substring(0, length);
                    input = groupName.Substring(length, (num2 - length) + 1);
                }
                else
                {
                    input = "";
                }
            }
            column = new PaintTreeColumn();
            column.bDrawRectangle = true;
            column.bHoverRectangle = false;
            column.Column = 1;
            column.ColumnText = text;
            column.ColumnType = PaintTreeColumnType.TEXT;
            base.Columns.Add(column);
            column = new PaintTreeColumn();
            column.bDrawRectangle = true;
            column.bHoverRectangle = false;
            column.Column = 2;
            column.ColumnText = input;
            column.ColumnType = PaintTreeColumnType.TEXT;
            base.Columns.Add(column);
        }

        public System.Windows.Forms.CheckState CheckState
        {
            get
            {
                return this._checkState;
            }
            set
            {
                this._checkState = value;
                if (this._tree != null)
                {
                    this._tree.CheckNodebox(this);
                }
            }
        }

        public BuddySelectionTree Owner
        {
            get
            {
                return this._tree;
            }
            set
            {
                this._tree = value;
            }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -