Exemple #1
0
        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);
                }
            }
        }
Exemple #2
0
        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);
                }
            }
        }
Exemple #3
0
 public SkinAttribute(SkinAttribute source)
     : base(source)
 {
     this.Value = source.Value;
 }
Exemple #4
0
		public SkinAttribute(SkinAttribute source)
			: base(source) {
			this.Value = source.Value;
		}
Exemple #5
0
		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);
			}
		}
Exemple #6
0
		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);
				}
			}
		}