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

📄 personalgroupmemberinfobase.cs

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

    public class PersonalGroupMemberInfoBase : PropertyDictionary, IDisposable
    {
        private int _groupStatus;
        private rich_string _richGroupNickName = new rich_string();

        public virtual void Dispose()
        {
            this.RichGroupNickName.plane_text = string.Empty;
        }

        public Image GroupIdentityImage
        {
            get
            {
                switch (this.GroupUserIdentity.Value)
                {
                    case UserIdentity.SuperManager:
                        return ImpsIcons.PGroupSuperManager;

                    case UserIdentity.Manager:
                        return ImpsIcons.PGroupManager;
                }
                return null;
            }
        }

        public ProposedData<string> GroupNickName
        {
            get
            {
                return base.InnerGetPropertyValue<ProposedData<string>>("GroupNickName");
            }
            internal set
            {
                base.InnerSetPropertyValue<ProposedData<string>>("GroupNickName", value);
                if (value != null)
                {
                    this._richGroupNickName.plane_text = value.Value;
                    if (this is PersonalGroupMemberInfo)
                    {
                        (this as PersonalGroupMemberInfo).Owner.PersonalInfo.Name = new ContactInfoItem<string>((string) value);
                    }
                }
            }
        }

        public int GroupStatus
        {
            get
            {
                return this._groupStatus;
            }
            internal set
            {
                this._groupStatus = value;
            }
        }

        public ProposedData<UserIdentity> GroupUserIdentity
        {
            get
            {
                return base.InnerGetPropertyValue<ProposedData<UserIdentity>>("GroupUserIdentity");
            }
            internal set
            {
                base.InnerSetPropertyValue<ProposedData<UserIdentity>>("GroupUserIdentity", value);
            }
        }

        public bool IsManagerOrSuperManager
        {
            get
            {
                if (((UserIdentity) this.GroupUserIdentity.Value) != UserIdentity.Manager)
                {
                    return (((UserIdentity) this.GroupUserIdentity.Value) == UserIdentity.SuperManager);
                }
                return true;
            }
        }

        internal bool IsRejctOrWaitingApprove
        {
            get
            {
                if (((UserIdentity) this.GroupUserIdentity.Value) != UserIdentity.Rejct)
                {
                    return (((UserIdentity) this.GroupUserIdentity.Value) == UserIdentity.WaitingApprove);
                }
                return true;
            }
        }

        public rich_string RichGroupNickName
        {
            get
            {
                return this._richGroupNickName;
            }
        }
    }
}

⌨️ 快捷键说明

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