Esempio n. 1
0
        } // LoadColors

        #endregion

        #region Load Layer Attributes

        /// <summary>
        /// Load Layer Attributes
        /// </summary>
        private static void LoadLayerAttribute(SkinLayer skinLayer, XElement e)
        {
            string        name          = ReadAttribute(e, "Name", null, true);
            SkinAttribute skinAttribute = skinLayer.Attributes[name];
            bool          inherent      = true;

            if (skinAttribute == null)
            {
                skinAttribute = new SkinAttribute();
                inherent      = false;
            }

            skinAttribute.Name = name;
            ReadAttribute(ref skinAttribute.Value, inherent, e, "Value", null, true);

            if (!inherent)
            {
                skinLayer.Attributes.Add(skinAttribute);
            }
        } // LoadLayerAttribute
Esempio n. 2
0
 public SkinAttribute(SkinAttribute source) : base(source)
 {
     Value = source.Value;
 } // SkinAttribute