Esempio n. 1
0
        /// <summary>
        /// Load one skin level
        /// </summary>
        /// <param name="xmlNode"></param>
        /// <returns></returns>
        internal SkinLevel      LoadLevel(XmlNode xmlNode)
        {
            if (xmlNode.Name == @"#comment")
            {
                return(null);
            }
            SkinLevel mLevel = new SkinLevel();

            mLevel.elements = LoadElements(xmlNode);
            foreach (XmlAttribute node in xmlNode.Attributes)
            {
                SetProperty(mLevel, node);
            }
            return(mLevel);
        }
Esempio n. 2
0
        /// <summary>
        /// Load all levels for the skin
        /// </summary>
        /// <param name="xmlNode"></param>
        /// <returns></returns>
        internal ArrayList      LoadLevels(XmlNode xmlNode)
        {
            ArrayList mLevels = new ArrayList();

            foreach (XmlNode node in xmlNode.ChildNodes)
            {
                SkinLevel skinLevel = (SkinLevel)LoadLevel(node);
                if (skinLevel == null)
                {
                    continue;
                }
                mLevels.Add(skinLevel);
            }
            return(mLevels);
        }