/// <param name="archive"></param> /// <param name="addon"></param> /// </summary> /// </summary> private void LoadImages(string addon, bool archive) { if (doc["Skin"]["Images"] == null) { return; } var l = doc["Skin"]["Images"].GetElementsByTagName("Image"); if (l != null && l.Count > 0) { foreach (XmlElement e in l) { var si = new SkinImage(); si.Name = ReadAttribute(e, "Name", null, true); si.Archive = archive; si.Asset = ReadAttribute(e, "Asset", null, true); si.Addon = addon; images.Add(si); } } }
public SkinLayer(SkinLayer source) : base(source) { if (source != null) { Image = new SkinImage(source.Image); Width = source.Width; Height = source.Height; OffsetX = source.OffsetX; OffsetY = source.OffsetY; Alignment = source.Alignment; SizingMargins = source.SizingMargins; ContentMargins = source.ContentMargins; States = source.States; Overlays = source.Overlays; Text = new SkinText(source.Text); Attributes = new SkinList <SkinAttribute>(source.Attributes); } else { throw new Exception("Parameter for SkinLayer copy constructor cannot be null."); } }
public SkinImage(SkinImage source) : base(source) { Resource = source.Resource; Asset = source.Asset; }