public EventCheck(XmlNode xmlNode)
 {
     XmlNodeList eventCheckNormalNodeList = xmlNode.SelectNodes("eventCheckNormal");
     if (eventCheckNormalNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in eventCheckNormalNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 eventCheckNormalIDRef = item.Attributes["id"].Name;
                 EventCheckNormal ob = EventCheckNormal();
                 IDManager.SetID(eventCheckNormalIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 eventCheckNormalIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 eventCheckNormal = new EventCheckNormal(item);
             }
         }
     }
     
 
     XmlNodeList eventCheckTimeNodeList = xmlNode.SelectNodes("eventCheckTime");
     if (eventCheckTimeNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in eventCheckTimeNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 eventCheckTimeIDRef = item.Attributes["id"].Name;
                 EventCheckTime ob = EventCheckTime();
                 IDManager.SetID(eventCheckTimeIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 eventCheckTimeIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 eventCheckTime = new EventCheckTime(item);
             }
         }
     }
     
 
 }
 public EventCheck(XmlNode xmlNode)
 {
     XmlNode eventCheckNormalNode = xmlNode.SelectSingleNode("eventCheckNormal");
     
     if (eventCheckNormalNode != null)
     {
         if (eventCheckNormalNode.Attributes["href"] != null || eventCheckNormalNode.Attributes["id"] != null) 
         {
             if (eventCheckNormalNode.Attributes["id"] != null) 
             {
                 eventCheckNormalIDRef_ = eventCheckNormalNode.Attributes["id"].Value;
                 EventCheckNormal ob = new EventCheckNormal(eventCheckNormalNode);
                 IDManager.SetID(eventCheckNormalIDRef_, ob);
             }
             else if (eventCheckNormalNode.Attributes["href"] != null)
             {
                 eventCheckNormalIDRef_ = eventCheckNormalNode.Attributes["href"].Value;
             }
             else
             {
                 eventCheckNormal_ = new EventCheckNormal(eventCheckNormalNode);
             }
         }
         else
         {
             eventCheckNormal_ = new EventCheckNormal(eventCheckNormalNode);
         }
     }
     
 
     XmlNode eventCheckTimeNode = xmlNode.SelectSingleNode("eventCheckTime");
     
     if (eventCheckTimeNode != null)
     {
         if (eventCheckTimeNode.Attributes["href"] != null || eventCheckTimeNode.Attributes["id"] != null) 
         {
             if (eventCheckTimeNode.Attributes["id"] != null) 
             {
                 eventCheckTimeIDRef_ = eventCheckTimeNode.Attributes["id"].Value;
                 EventCheckTime ob = new EventCheckTime(eventCheckTimeNode);
                 IDManager.SetID(eventCheckTimeIDRef_, ob);
             }
             else if (eventCheckTimeNode.Attributes["href"] != null)
             {
                 eventCheckTimeIDRef_ = eventCheckTimeNode.Attributes["href"].Value;
             }
             else
             {
                 eventCheckTime_ = new EventCheckTime(eventCheckTimeNode);
             }
         }
         else
         {
             eventCheckTime_ = new EventCheckTime(eventCheckTimeNode);
         }
     }
     
 
 }
        public EventCheck(XmlNode xmlNode)
        {
            XmlNodeList eventCheckNormalNodeList = xmlNode.SelectNodes("eventCheckNormal");

            if (eventCheckNormalNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in eventCheckNormalNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        eventCheckNormalIDRef = item.Attributes["id"].Name;
                        EventCheckNormal ob = EventCheckNormal();
                        IDManager.SetID(eventCheckNormalIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        eventCheckNormalIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        eventCheckNormal = new EventCheckNormal(item);
                    }
                }
            }


            XmlNodeList eventCheckTimeNodeList = xmlNode.SelectNodes("eventCheckTime");

            if (eventCheckTimeNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in eventCheckTimeNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        eventCheckTimeIDRef = item.Attributes["id"].Name;
                        EventCheckTime ob = EventCheckTime();
                        IDManager.SetID(eventCheckTimeIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        eventCheckTimeIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        eventCheckTime = new EventCheckTime(item);
                    }
                }
            }
        }
示例#4
0
        public EventCheck(XmlNode xmlNode)
        {
            XmlNode eventCheckNormalNode = xmlNode.SelectSingleNode("eventCheckNormal");

            if (eventCheckNormalNode != null)
            {
                if (eventCheckNormalNode.Attributes["href"] != null || eventCheckNormalNode.Attributes["id"] != null)
                {
                    if (eventCheckNormalNode.Attributes["id"] != null)
                    {
                        eventCheckNormalIDRef_ = eventCheckNormalNode.Attributes["id"].Value;
                        EventCheckNormal ob = new EventCheckNormal(eventCheckNormalNode);
                        IDManager.SetID(eventCheckNormalIDRef_, ob);
                    }
                    else if (eventCheckNormalNode.Attributes["href"] != null)
                    {
                        eventCheckNormalIDRef_ = eventCheckNormalNode.Attributes["href"].Value;
                    }
                    else
                    {
                        eventCheckNormal_ = new EventCheckNormal(eventCheckNormalNode);
                    }
                }
                else
                {
                    eventCheckNormal_ = new EventCheckNormal(eventCheckNormalNode);
                }
            }


            XmlNode eventCheckTimeNode = xmlNode.SelectSingleNode("eventCheckTime");

            if (eventCheckTimeNode != null)
            {
                if (eventCheckTimeNode.Attributes["href"] != null || eventCheckTimeNode.Attributes["id"] != null)
                {
                    if (eventCheckTimeNode.Attributes["id"] != null)
                    {
                        eventCheckTimeIDRef_ = eventCheckTimeNode.Attributes["id"].Value;
                        EventCheckTime ob = new EventCheckTime(eventCheckTimeNode);
                        IDManager.SetID(eventCheckTimeIDRef_, ob);
                    }
                    else if (eventCheckTimeNode.Attributes["href"] != null)
                    {
                        eventCheckTimeIDRef_ = eventCheckTimeNode.Attributes["href"].Value;
                    }
                    else
                    {
                        eventCheckTime_ = new EventCheckTime(eventCheckTimeNode);
                    }
                }
                else
                {
                    eventCheckTime_ = new EventCheckTime(eventCheckTimeNode);
                }
            }
        }