logoaditem.cs

来自「破解的飞信源代码」· CS 代码 · 共 58 行

CS
58
字号
namespace Imps.Client.Core
{
    using Imps.Utils;
    using System;
    using System.Xml;

    public class LogoAdItem : AdItemBase
    {
        private int _height;
        private string _src;
        private int _width;

        public override void LoadXmlNode(XmlNode node)
        {
            this.Source = XmlHelper.ReadXmlAttributeString(node, "src");
            this.Width = XmlHelper.ReadXmlAttributeInt32(node, "width", 0);
            this.Height = XmlHelper.ReadXmlAttributeInt32(node, "height", 0);
        }

        public int Height
        {
            get
            {
                return this._height;
            }
            set
            {
                this._height = value;
            }
        }

        public string Source
        {
            get
            {
                return this._src;
            }
            set
            {
                this._src = value;
            }
        }

        public int Width
        {
            get
            {
                return this._width;
            }
            set
            {
                this._width = value;
            }
        }
    }
}

⌨️ 快捷键说明

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