public static XFormat CreateXFormats(XElement xe) { XFormat xf = CreateXFormat(xe); foreach (XElement xe2 in xe.Elements()) { xf.Add(xe2); } return(xf); }
public XFormat Add(XElement xe) { XFormat xf = XFormat.CreateXFormat(xe); xf.gParent = this; if (gChilds.Count > 0) { XFormat xf2 = gChilds[gChilds.Count - 1]; xf2.gNextElement = xf; xf.gPreviousElement = xf2; } gChilds.Add(xf); foreach (XElement xe2 in xe.Elements()) { xf.Add(xe2); } return(xf); }