Exemplo n.º 1
0
        public static bool SetRowsAttributeByXmlNode(string _TagName)
        {
            bool result;

            try
            {
                if (_TagName == null)
                {
                    throw new NullReferenceException();
                }
                XmlNode[] xmlNodeByTagname = XmlCommomOp.GetXmlNodeByTagname(_TagName);
                if (xmlNodeByTagname == null || xmlNodeByTagname.Length <= 0)
                {
                    result = false;
                }
                else
                {
                    for (int i = 0; i < xmlNodeByTagname.Length; i++)
                    {
                        DrawDriverXmlOp.SetRowsAttributeByXmlNode(xmlNodeByTagname[i]);
                    }
                    result = true;
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(result);
        }
Exemplo n.º 2
0
 private static void NodeChildNodes(XmlNode _node)
 {
     if (_node.HasChildNodes)
     {
         DrawDriverXmlOp.SetRowsAttributeByXmlNode(_node);
         foreach (XmlNode node in _node.ChildNodes)
         {
             DrawDriverXmlOp.NodeChildNodes(node);
         }
     }
 }