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

📄 adinfo.cs

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

    public class AdInfo
    {
        private string _href;
        private List<AdItemBase> _items = new List<AdItemBase>();
        private string _title;

        public void LoadXmlNode(XmlNode node)
        {
            this._items.Clear();
            this._href = XmlHelper.ReadXmlAttributeString(node, "href");
            this._title = XmlHelper.ReadXmlAttributeString(node, "title");
            foreach (XmlNode node2 in node.ChildNodes)
            {
                AdItemBase base2;
                if (node2.NodeType == XmlNodeType.Text)
                {
                    base2 = new TextAdItem();
                }
                else
                {
                    if ((node2.NodeType != XmlNodeType.Element) || (node2.Name != "img"))
                    {
                        continue;
                    }
                    base2 = new LogoAdItem();
                }
                base2.LoadXmlNode(node2);
                this._items.Add(base2);
            }
        }

        public string Href
        {
            get
            {
                return this._href;
            }
            set
            {
                this._href = value;
            }
        }

        public bool IsValid
        {
            get
            {
                if (!string.IsNullOrEmpty(this._href))
                {
                    return (this._items.get_Count() > 0);
                }
                return false;
            }
        }

        public List<AdItemBase> Items
        {
            get
            {
                return this._items;
            }
            set
            {
                this._items = value;
            }
        }

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

⌨️ 快捷键说明

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