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

📄 portraitaction.cs

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

    public sealed class PortraitAction : LoginAction
    {
        private const string errorMessage = "下载头像过程中出现错误";

        public PortraitAction(User user, ILoginListner listner) : base(user, listner)
        {
        }

        public override void Cancel()
        {
        }

        public override void Clear()
        {
            base.User.PortraitDownloader.StopDownload();
        }

        public override void Dispose()
        {
        }

        public override bool Execute()
        {
            try
            {
                base.NotifyMessage("开始下载头像");
                base.User.PortraitDownloader.BeginDownload();
            }
            catch (Exception exception)
            {
                base.NotifyException("下载头像过程中出现错误", exception);
            }
            return true;
        }

        public override bool LocalCacheHit
        {
            get
            {
                return true;
            }
        }

        public override Imps.Client.Core.LoginStage LoginStage
        {
            get
            {
                return Imps.Client.Core.LoginStage.DownloadPortrait;
            }
        }
    }
}

⌨️ 快捷键说明

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