public static void LoadFromElement(XmlElement e, Data.DynamicInput value, bool isClip) { var e_input = e["Input"] as XmlElement; if (e_input != null) { LoadFromElement(e_input, value.Input, isClip); } }
public static XmlElement SaveToElement(XmlDocument doc, string element_name, Data.DynamicInput value, bool isClip) { var e = doc.CreateElement(element_name); var input = SaveToElement(doc, "Input", value.Input, isClip); if (input != null) { e.AppendChild(input); } return(e.ChildNodes.Count > 0 ? e : null); }