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

📄 oemsetting.cs

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

    public class OemSetting
    {
        private const string _NN_oemEnglishName = "OemSetting/EnglishName";
        private const string _NN_oemFullName = "OemSetting/FullName";
        private const string _NN_oemLogo = "OemSetting/Logo";
        private const string _NN_oemShortName = "OemSetting/ShortName";
        private const string _NN_oemTag = "OemSetting/Tag";
        private const string _oemCfgFile = "oem.config";
        private string _oemEnglishName;
        private string _oemFullName;
        private string _oemLogo;
        private static OemSetting _oemSetting = new OemSetting();
        private string _oemShortName;
        private string _oemTag;

        private OemSetting()
        {
            string path = Path.Combine(ImpsPathInfo.StartupPath, "oem.config");
            if (File.Exists(path))
            {
                XmlDocument document = new XmlDocument();
                try
                {
                    document.Load(path);
                    XmlNode node = document.DocumentElement.SelectSingleNode("OemSetting/ShortName");
                    this._oemShortName = (node != null) ? node.InnerText.Trim() : "";
                    XmlNode node2 = document.DocumentElement.SelectSingleNode("OemSetting/FullName");
                    this._oemFullName = (node2 != null) ? node2.InnerText.Trim() : "";
                    XmlNode node3 = document.DocumentElement.SelectSingleNode("OemSetting/EnglishName");
                    this._oemEnglishName = (node3 != null) ? node3.InnerText.Trim() : "";
                    XmlNode node4 = document.DocumentElement.SelectSingleNode("OemSetting/Logo");
                    this._oemLogo = (node4 != null) ? node4.InnerText.Trim() : "";
                    XmlNode node5 = document.DocumentElement.SelectSingleNode("OemSetting/Tag");
                    this._oemTag = (node5 != null) ? node5.InnerText.Trim() : "";
                }
                catch
                {
                }
            }
        }

        public static OemSetting Instance
        {
            get
            {
                return _oemSetting;
            }
        }

        public string OemEnglishName
        {
            get
            {
                return this._oemEnglishName;
            }
        }

        public string OemFullName
        {
            get
            {
                return this._oemFullName;
            }
        }

        public string OemLogo
        {
            get
            {
                return this._oemLogo;
            }
        }

        public string OemShortName
        {
            get
            {
                return this._oemShortName;
            }
        }

        public string OemTag
        {
            get
            {
                return this._oemTag;
            }
        }
    }
}

⌨️ 快捷键说明

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