public static void FromXml(XElement xShape, IList <IShapeRecordRGB> records) { var xEdges = xShape.RequiredElement("edges"); foreach (var xShapeRecord in xEdges.Elements()) { records.Add(XShapeRecord.RGBFromXml(xShapeRecord)); } }
public static Glyph FromXml(XElement xGlyph, Glyph glyph) { var xEdges = xGlyph.RequiredElement("edges"); foreach (var xShapeRecord in xEdges.Elements()) { glyph.Records.Add(XShapeRecord.RGBFromXml(xShapeRecord)); } return(glyph); }