Exemplo n.º 1
0
        public static void DeserializePointsCollection(this IExolutioSerializable component, ObservablePointCollection points, XElement parentNode, SerializationContext context)
        {
            XElement pointsElement = parentNode.Element(context.ExolutioNS + "Points");

            foreach (XElement pointElement in pointsElement.Elements())
            {
                double x = double.Parse(component.DeserializeSimpleValueFromAttribute("X", pointElement, context));
                double y = double.Parse(component.DeserializeSimpleValueFromAttribute("Y", pointElement, context));
                points.Add(new rPoint(x, y));
            }
        }