public void FromXml(string xml) { Debug.Assert(String.IsNullOrEmpty(xml) == false, "xml 为 空"); if (String.IsNullOrEmpty(xml)) { return; } SEXElement element = SEXElement.Parse(xml); this.Id = element.Attribute("Id").Value; this.Name = element.Attribute("Name").Value; this.ParentFolderId = element.Attribute("Parent").Value; }
public virtual void FromXml(string xml) { Debug.Assert(String.IsNullOrEmpty(xml) == false, "xml 为 空"); if (String.IsNullOrEmpty(xml)) { return; } SEXElement element = SEXElement.Parse(xml); this.Id = element.Attribute("Id").Value; this.Name = element.Attribute("Name").Value; this.Code = element.Attribute("Code").Value; this.System = element.GetAttributeObject <bool>("Sys", false); }