private void LoadSkinAttributes() { if (doc["Skin"]["Attributes"] == null) { return; } XmlNodeList l = doc["Skin"]["Attributes"].GetElementsByTagName("Attribute"); if (l != null && l.Count > 0) { foreach (XmlElement e in l) { SkinAttribute sa = new SkinAttribute(); sa.Name = ReadAttribute(e, "Name", null, true); sa.Value = ReadAttribute(e, "Value", null, true); attributes.Add(sa); } } }
private void LoadLayerAttributes(SkinLayer sl, XmlNodeList l) { foreach (XmlElement e in l) { string name = ReadAttribute(e, "Name", null, true); SkinAttribute sa = sl.Attributes[name]; bool inh = true; if (sa == null) { sa = new SkinAttribute(); inh = false; } sa.Name = name; ReadAttribute(ref sa.Value, inh, e, "Value", null, true); if (!inh) { sl.Attributes.Add(sa); } } }
public SkinAttribute(SkinAttribute source) : base(source) { this.Value = source.Value; }
private void LoadLayerAttributes(SkinLayer sl, XmlNodeList l) { foreach (XmlElement e in l) { string name = ReadAttribute(e, "Name", null, true); SkinAttribute sa = sl.Attributes[name]; bool inh = true; if (sa == null) { sa = new SkinAttribute(); inh = false; } sa.Name = name; ReadAttribute(ref sa.Value, inh, e, "Value", null, true); if (!inh) sl.Attributes.Add(sa); } }
private void LoadSkinAttributes() { if (doc["Skin"]["Attributes"] == null) return; XmlNodeList l = doc["Skin"]["Attributes"].GetElementsByTagName("Attribute"); if (l != null && l.Count > 0) { foreach (XmlElement e in l) { SkinAttribute sa = new SkinAttribute(); sa.Name = ReadAttribute(e, "Name", null, true); sa.Value = ReadAttribute(e, "Value", null, true); attributes.Add(sa); } } }