public static void FromXml(XElement xClipActions, ClipActionsList clipActions) { foreach (var xClipAction in xClipActions.Elements()) { clipActions.Records.Add(XClipActionRecord.FromXml(xClipAction)); } }
public static XElement ToXml(ClipActionsList clipActions) { var res = new XElement("events"); foreach (var clipAction in clipActions.Records) { res.Add(XClipActionRecord.ToXml(clipAction)); } return(res); }