/// </summary> /// </summary> private void LoadSkinAttributes() { if (doc["Skin"]["Attributes"] == null) { return; } var l = doc["Skin"]["Attributes"].GetElementsByTagName("Attribute"); if (l != null && l.Count > 0) { foreach (XmlElement e in l) { var sa = new SkinAttribute(); sa.Name = ReadAttribute(e, "Name", null, true); sa.Value = ReadAttribute(e, "Value", null, true); attributes.Add(sa); } } }
/// <param name="l"></param> /// <param name="sc"></param> /// </summary> /// </summary> private void LoadControlAttributes(SkinControl sc, XmlNodeList l) { foreach (XmlElement e in l) { var name = ReadAttribute(e, "Name", null, true); var sa = sc.Attributes[name]; var inh = true; if (sa == null) { sa = new SkinAttribute(); inh = false; } sa.Name = name; ReadAttribute(ref sa.Value, inh, e, "Value", null, true); if (!inh) { sc.Attributes.Add(sa); } } }
public SkinAttribute(SkinAttribute source) : base(source) { Value = source.Value; }