Esempio n. 1
0
        public static SitemapManager GetInstance()
        {
            lock (typeof(SitemapManager))
            {
                if (_instance == null)
                {
                    _instance = new SitemapManager();
                    _instance.Init();
                }

                return _instance;
            }
        }
Esempio n. 2
0
        public static SitemapManager GetInstance()
        {
            lock (typeof(SitemapManager))
            {
                if (_instance == null)
                {
                    _instance = new SitemapManager();
                    _instance.Init();
                }

                return(_instance);
            }
        }
Esempio n. 3
0
        public override void ReadXml(XmlReader reader)
        {
            while (reader.Read())
            {
                if (reader.NodeType == XmlNodeType.Element)
                {
                    if (reader.Name == NODE_ADMIN)
                    {
                        this.ID   = reader["id"];
                        this.Path = reader["path"];

                        SitemapManager.GetInstance().SetSitemapByID(this);
                    }
                    if (reader.Name == NODE_TITLE)
                    {
                        this.Title = reader.ReadElementString();
                    }
                    if (reader.Name == NODE_MODULE_GROUP)
                    {
                        ModuleGroup moduleGroup = new ModuleGroup(this);
                        moduleGroup.ID   = reader["id"];
                        moduleGroup.Path = reader["path"];
                        moduleGroup.ReadXml(reader);

                        this.Add(moduleGroup);
                    }
                    if (reader.Name == NODE_INIT_PARAMS)
                    {
                        ReadInitParams(reader);
                    }
                }
                if (reader.Name == NODE_ADMIN &&
                    reader.NodeType == XmlNodeType.EndElement)
                {
                    break;
                }
            }
        }
Esempio n. 4
0
 public void Dispose()
 {
     _instance		= null;
     _hashSitemap	= null;
 }
Esempio n. 5
0
 /// <summary>
 /// 노드를 추가한다
 /// </summary>
 /// <param name="sitemap"></param>
 public virtual void Add(ISitemap sitemap)
 {
     this.sitemap.Add(sitemap);
     SitemapManager.GetInstance().SetSitemapByID(sitemap);
 }
Esempio n. 6
0
 public void Dispose()
 {
     _instance    = null;
     _hashSitemap = null;
 }