/// <summary>
        /// Add a point to current template and load all properties except the constraints
        /// </summary>
        /// <param name="node">The XML node that represents the point</param>
        private void LoadPointFromXML(System.Xml.XmlNode node)
        {
            GOMLib.GOM_Point	pt;

            if (System.String.Compare(node.Name, GOM_TAGS.POINT, true) == 0)
            {
                pt = new GOM_Point();
                pt.LoadFromXML( node, new GOM_ResourceArrays(rgPoints) );
                rgPoints.Add(pt);
            }
        }
Пример #2
0
 private GOM_Points LoadPointsFromXML(System.Xml.XmlNode node)
 {
     GOM_Points points = new GOM_Points();
     for( int i=0; i<node.ChildNodes.Count; i++ )
     {
         if ( string.Compare(node.ChildNodes[i].Name,GOM_TAGS.POINT,true) == 0 )
         {
             GOM_Point pt = new GOM_Point();
             pt.LoadFromXML(node.ChildNodes[i], null);
             points.Add(pt);
         }
     }
     return points;
 }