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

📄 errmessage.cs

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 CS
字号:
namespace PowerEasy.Components
{
    using PowerEasy.Enumerations;
    using System;
    using System.Xml;

    public class ErrMessage
    {
        private string m_Body;
        private int m_MessageId = -1;
        private string m_Title;

        public ErrMessage(XmlNode node)
        {
            try
            {
                this.m_MessageId = int.Parse(node.Attributes["id"].Value);
                this.m_Title = node.SelectSingleNode("title").InnerText;
                this.m_Body = node.SelectSingleNode("body").InnerText;
            }
            catch
            {
                new CustomException(PEExceptionType.ResourceError, @"资源文件Languages\zh-CHS\Messages.xml错误!").Log();
            }
        }

        public string Body
        {
            get
            {
                return this.m_Body;
            }
            set
            {
                this.m_Body = value;
            }
        }

        public int MessageId
        {
            get
            {
                return this.m_MessageId;
            }
        }

        public string Title
        {
            get
            {
                return this.m_Title;
            }
            set
            {
                this.m_Title = value;
            }
        }
    }
}

⌨️ 快捷键说明

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