Exemplo n.º 1
0
 public void Parse(XmlElement element)
 {
     foreach (object node in element.ChildNodes)
     {
         if (!(node is XmlElement))
         {
             continue;
         }
         var ele = (XmlElement)node;
         if (ele.LocalName != "Rectangle")
         {
             continue;
         }
         var rect = new RectangleF();
         Rectangles.ParseXmlElement(ref rect, ele);
         Add(rect);
     }
 }