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

📄 personalgroupmemberinfo.cs

📁 破解的飞信源代码
💻 CS
字号:
namespace Imps.Client.Core
{
    using Imps.Client.Resource;
    using System;
    using System.Drawing;

    public class PersonalGroupMemberInfo : PersonalGroupMemberInfoBase
    {
        private string _groupInnerNickName = string.Empty;
        private string _iicNickName = string.Empty;
        private ProposedData<bool> _isBlocked;
        private PersonalGroupMember _owner;

        public PersonalGroupMemberInfo(PersonalGroupMember owner)
        {
            this._owner = owner;
        }

        internal void ComputeGroupNickName()
        {
            if (!string.IsNullOrEmpty(this.GroupInnerNickName))
            {
                base.GroupNickName = new ProposedData<string>(this.GroupInnerNickName);
            }
            else if (!string.IsNullOrEmpty(this.IICDisplayName))
            {
                base.GroupNickName = new ProposedData<string>(this.IICDisplayName);
            }
            else if (!string.IsNullOrEmpty(this.IicNickName))
            {
                base.GroupNickName = new ProposedData<string>(this.IicNickName);
            }
            else
            {
                base.GroupNickName = new ProposedData<string>(this.Owner.Uri.Id);
            }
        }

        public Image GroupAbilityImage
        {
            get
            {
                if (this.HasGroupAbility)
                {
                    if (this.IsBlocked.Value)
                    {
                        return ImpsIcons.PG_OnBlocked;
                    }
                    return ImpsIcons.PGroupHasGroupAbility;
                }
                if (this.IsBlocked.Value)
                {
                    return ImpsIcons.PG_OffBlocked;
                }
                return ImpsIcons.PGroupHasNoGroupAbility;
            }
        }

        internal string GroupInnerNickName
        {
            get
            {
                return this._groupInnerNickName;
            }
            set
            {
                this._groupInnerNickName = value;
            }
        }

        public bool HasGroupAbility
        {
            get
            {
                return (this.Owner.Presence.RealValue == 400);
            }
        }

        private string IICDisplayName
        {
            get
            {
                if (this.Owner.OwnerContact == null)
                {
                    return string.Empty;
                }
                return this.Owner.OwnerContact.PersonalInfo.DisplayName;
            }
        }

        internal string IicNickName
        {
            get
            {
                return this._iicNickName;
            }
            set
            {
                this._iicNickName = value;
            }
        }

        public ProposedData<bool> IsBlocked
        {
            get
            {
                return base.InnerGetPropertyValue<ProposedData<bool>>("IsBlocked", new ProposedData<bool>(false));
            }
            set
            {
                if (this.IsBlocked.Value != value)
                {
                    base.InnerSetPropertyValue<ProposedData<bool>>("IsBlocked", value);
                }
            }
        }

        public PersonalGroupMember Owner
        {
            get
            {
                return this._owner;
            }
            internal set
            {
                this._owner = value;
            }
        }

        public string PresenseDescription
        {
            get
            {
                return "";
            }
        }
    }
}

⌨️ 快捷键说明

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