public bool LoadFromElement(XElement e) { PatchBlocks.Clear(); Guid = e.Attribute("guid").Value.ToGuid(); Name = e.Attribute("name").Value; foreach (var x in e.Elements("patchblock")) { PatchBlock pb = new PatchBlock(); pb.LoadFromElement(x); PatchBlocks.Add(pb); } return(true); }
public bool LoadFromElement(XElement e) { PatchBlocks.Clear(); Guid = e.Attribute("guid").Value.ToGuid(); Name = e.Attribute("name").Value; foreach (var x in e.Elements("patchblock")) { PatchBlock pb = new PatchBlock(); pb.LoadFromElement(x); PatchBlocks.Add(pb); } return true; }