示例#1
0
 public static void FromXml(XElement xClipActions, ClipActionsList clipActions)
 {
     foreach (var xClipAction in xClipActions.Elements())
     {
         clipActions.Records.Add(XClipActionRecord.FromXml(xClipAction));
     }
 }
示例#2
0
        public static XElement ToXml(ClipActionsList clipActions)
        {
            var res = new XElement("events");

            foreach (var clipAction in clipActions.Records)
            {
                res.Add(XClipActionRecord.ToXml(clipAction));
            }
            return(res);
        }