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

📄 crbt.cs

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

    public class Crbt
    {
        private string _name = string.Empty;
        private string _singer = string.Empty;
        private string _sp = string.Empty;
        private string _url = string.Empty;

        public virtual bool IsValid()
        {
            if ((this._name.Equals(string.Empty) && this._singer.Equals(string.Empty)) && (this._url.Equals(string.Empty) && this._sp.Equals(string.Empty)))
            {
                return false;
            }
            return true;
        }

        public void Play()
        {
            object obj2 = Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\wmplayer.exe", "", "");
            if (!File.Exists(obj2 as string))
            {
                throw new FileLoadException("没有找到Windows Media Player,需要使用Windows Media Player才能播放彩铃", obj2 as string);
            }
            if (!string.IsNullOrEmpty(this.Url))
            {
                ShellHelper.ShellExecute(IntPtr.Zero, "open", obj2 as string, this.Url, "", 1);
            }
        }

        public string ServiceProvider
        {
            get
            {
                return this._sp;
            }
            set
            {
                this._sp = value;
            }
        }

        public string Singer
        {
            get
            {
                return this._singer;
            }
            set
            {
                this._singer = value;
            }
        }

        public string ToneName
        {
            get
            {
                return this._name;
            }
            set
            {
                this._name = value;
            }
        }

        public string Url
        {
            get
            {
                return this._url;
            }
            set
            {
                this._url = value;
            }
        }
    }
}

⌨️ 快捷键说明

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