public EventFunctionM(XmlNode xmlNode)
        {
            XmlNode nameNode = xmlNode.SelectSingleNode("name");

            if (nameNode != null)
            {
                if (nameNode.Attributes["href"] != null || nameNode.Attributes["id"] != null)
                {
                    if (nameNode.Attributes["id"] != null)
                    {
                        nameIDRef_ = nameNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(nameNode);
                        IDManager.SetID(nameIDRef_, ob);
                    }
                    else if (nameNode.Attributes["href"] != null)
                    {
                        nameIDRef_ = nameNode.Attributes["href"].Value;
                    }
                    else
                    {
                        name_ = new XsdTypeToken(nameNode);
                    }
                }
                else
                {
                    name_ = new XsdTypeToken(nameNode);
                }
            }


            XmlNode indexSymbolNode = xmlNode.SelectSingleNode("indexSymbol");

            if (indexSymbolNode != null)
            {
                if (indexSymbolNode.Attributes["href"] != null || indexSymbolNode.Attributes["id"] != null)
                {
                    if (indexSymbolNode.Attributes["id"] != null)
                    {
                        indexSymbolIDRef_ = indexSymbolNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(indexSymbolNode);
                        IDManager.SetID(indexSymbolIDRef_, ob);
                    }
                    else if (indexSymbolNode.Attributes["href"] != null)
                    {
                        indexSymbolIDRef_ = indexSymbolNode.Attributes["href"].Value;
                    }
                    else
                    {
                        indexSymbol_ = new XsdTypeToken(indexSymbolNode);
                    }
                }
                else
                {
                    indexSymbol_ = new XsdTypeToken(indexSymbolNode);
                }
            }


            XmlNode upEventCheckNode = xmlNode.SelectSingleNode("upEventCheck");

            if (upEventCheckNode != null)
            {
                if (upEventCheckNode.Attributes["href"] != null || upEventCheckNode.Attributes["id"] != null)
                {
                    if (upEventCheckNode.Attributes["id"] != null)
                    {
                        upEventCheckIDRef_ = upEventCheckNode.Attributes["id"].Value;
                        UpEventCheck ob = new UpEventCheck(upEventCheckNode);
                        IDManager.SetID(upEventCheckIDRef_, ob);
                    }
                    else if (upEventCheckNode.Attributes["href"] != null)
                    {
                        upEventCheckIDRef_ = upEventCheckNode.Attributes["href"].Value;
                    }
                    else
                    {
                        upEventCheck_ = new UpEventCheck(upEventCheckNode);
                    }
                }
                else
                {
                    upEventCheck_ = new UpEventCheck(upEventCheckNode);
                }
            }


            XmlNode downEventCheckNode = xmlNode.SelectSingleNode("downEventCheck");

            if (downEventCheckNode != null)
            {
                if (downEventCheckNode.Attributes["href"] != null || downEventCheckNode.Attributes["id"] != null)
                {
                    if (downEventCheckNode.Attributes["id"] != null)
                    {
                        downEventCheckIDRef_ = downEventCheckNode.Attributes["id"].Value;
                        DownEventCheck ob = new DownEventCheck(downEventCheckNode);
                        IDManager.SetID(downEventCheckIDRef_, ob);
                    }
                    else if (downEventCheckNode.Attributes["href"] != null)
                    {
                        downEventCheckIDRef_ = downEventCheckNode.Attributes["href"].Value;
                    }
                    else
                    {
                        downEventCheck_ = new DownEventCheck(downEventCheckNode);
                    }
                }
                else
                {
                    downEventCheck_ = new DownEventCheck(downEventCheckNode);
                }
            }


            XmlNode updownEventCheckNode = xmlNode.SelectSingleNode("updownEventCheck");

            if (updownEventCheckNode != null)
            {
                if (updownEventCheckNode.Attributes["href"] != null || updownEventCheckNode.Attributes["id"] != null)
                {
                    if (updownEventCheckNode.Attributes["id"] != null)
                    {
                        updownEventCheckIDRef_ = updownEventCheckNode.Attributes["id"].Value;
                        UpDownEventCheck ob = new UpDownEventCheck(updownEventCheckNode);
                        IDManager.SetID(updownEventCheckIDRef_, ob);
                    }
                    else if (updownEventCheckNode.Attributes["href"] != null)
                    {
                        updownEventCheckIDRef_ = updownEventCheckNode.Attributes["href"].Value;
                    }
                    else
                    {
                        updownEventCheck_ = new UpDownEventCheck(updownEventCheckNode);
                    }
                }
                else
                {
                    updownEventCheck_ = new UpDownEventCheck(updownEventCheckNode);
                }
            }


            XmlNode rangeEventCheckNode = xmlNode.SelectSingleNode("rangeEventCheck");

            if (rangeEventCheckNode != null)
            {
                if (rangeEventCheckNode.Attributes["href"] != null || rangeEventCheckNode.Attributes["id"] != null)
                {
                    if (rangeEventCheckNode.Attributes["id"] != null)
                    {
                        rangeEventCheckIDRef_ = rangeEventCheckNode.Attributes["id"].Value;
                        RangeEventCheck ob = new RangeEventCheck(rangeEventCheckNode);
                        IDManager.SetID(rangeEventCheckIDRef_, ob);
                    }
                    else if (rangeEventCheckNode.Attributes["href"] != null)
                    {
                        rangeEventCheckIDRef_ = rangeEventCheckNode.Attributes["href"].Value;
                    }
                    else
                    {
                        rangeEventCheck_ = new RangeEventCheck(rangeEventCheckNode);
                    }
                }
                else
                {
                    rangeEventCheck_ = new RangeEventCheck(rangeEventCheckNode);
                }
            }
        }
 public EventFunctionM(XmlNode xmlNode)
 {
     XmlNode nameNode = xmlNode.SelectSingleNode("name");
     
     if (nameNode != null)
     {
         if (nameNode.Attributes["href"] != null || nameNode.Attributes["id"] != null) 
         {
             if (nameNode.Attributes["id"] != null) 
             {
                 nameIDRef_ = nameNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(nameNode);
                 IDManager.SetID(nameIDRef_, ob);
             }
             else if (nameNode.Attributes["href"] != null)
             {
                 nameIDRef_ = nameNode.Attributes["href"].Value;
             }
             else
             {
                 name_ = new XsdTypeToken(nameNode);
             }
         }
         else
         {
             name_ = new XsdTypeToken(nameNode);
         }
     }
     
 
     XmlNode indexSymbolNode = xmlNode.SelectSingleNode("indexSymbol");
     
     if (indexSymbolNode != null)
     {
         if (indexSymbolNode.Attributes["href"] != null || indexSymbolNode.Attributes["id"] != null) 
         {
             if (indexSymbolNode.Attributes["id"] != null) 
             {
                 indexSymbolIDRef_ = indexSymbolNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(indexSymbolNode);
                 IDManager.SetID(indexSymbolIDRef_, ob);
             }
             else if (indexSymbolNode.Attributes["href"] != null)
             {
                 indexSymbolIDRef_ = indexSymbolNode.Attributes["href"].Value;
             }
             else
             {
                 indexSymbol_ = new XsdTypeToken(indexSymbolNode);
             }
         }
         else
         {
             indexSymbol_ = new XsdTypeToken(indexSymbolNode);
         }
     }
     
 
     XmlNode upEventCheckNode = xmlNode.SelectSingleNode("upEventCheck");
     
     if (upEventCheckNode != null)
     {
         if (upEventCheckNode.Attributes["href"] != null || upEventCheckNode.Attributes["id"] != null) 
         {
             if (upEventCheckNode.Attributes["id"] != null) 
             {
                 upEventCheckIDRef_ = upEventCheckNode.Attributes["id"].Value;
                 UpEventCheck ob = new UpEventCheck(upEventCheckNode);
                 IDManager.SetID(upEventCheckIDRef_, ob);
             }
             else if (upEventCheckNode.Attributes["href"] != null)
             {
                 upEventCheckIDRef_ = upEventCheckNode.Attributes["href"].Value;
             }
             else
             {
                 upEventCheck_ = new UpEventCheck(upEventCheckNode);
             }
         }
         else
         {
             upEventCheck_ = new UpEventCheck(upEventCheckNode);
         }
     }
     
 
     XmlNode downEventCheckNode = xmlNode.SelectSingleNode("downEventCheck");
     
     if (downEventCheckNode != null)
     {
         if (downEventCheckNode.Attributes["href"] != null || downEventCheckNode.Attributes["id"] != null) 
         {
             if (downEventCheckNode.Attributes["id"] != null) 
             {
                 downEventCheckIDRef_ = downEventCheckNode.Attributes["id"].Value;
                 DownEventCheck ob = new DownEventCheck(downEventCheckNode);
                 IDManager.SetID(downEventCheckIDRef_, ob);
             }
             else if (downEventCheckNode.Attributes["href"] != null)
             {
                 downEventCheckIDRef_ = downEventCheckNode.Attributes["href"].Value;
             }
             else
             {
                 downEventCheck_ = new DownEventCheck(downEventCheckNode);
             }
         }
         else
         {
             downEventCheck_ = new DownEventCheck(downEventCheckNode);
         }
     }
     
 
     XmlNode updownEventCheckNode = xmlNode.SelectSingleNode("updownEventCheck");
     
     if (updownEventCheckNode != null)
     {
         if (updownEventCheckNode.Attributes["href"] != null || updownEventCheckNode.Attributes["id"] != null) 
         {
             if (updownEventCheckNode.Attributes["id"] != null) 
             {
                 updownEventCheckIDRef_ = updownEventCheckNode.Attributes["id"].Value;
                 UpDownEventCheck ob = new UpDownEventCheck(updownEventCheckNode);
                 IDManager.SetID(updownEventCheckIDRef_, ob);
             }
             else if (updownEventCheckNode.Attributes["href"] != null)
             {
                 updownEventCheckIDRef_ = updownEventCheckNode.Attributes["href"].Value;
             }
             else
             {
                 updownEventCheck_ = new UpDownEventCheck(updownEventCheckNode);
             }
         }
         else
         {
             updownEventCheck_ = new UpDownEventCheck(updownEventCheckNode);
         }
     }
     
 
     XmlNode rangeEventCheckNode = xmlNode.SelectSingleNode("rangeEventCheck");
     
     if (rangeEventCheckNode != null)
     {
         if (rangeEventCheckNode.Attributes["href"] != null || rangeEventCheckNode.Attributes["id"] != null) 
         {
             if (rangeEventCheckNode.Attributes["id"] != null) 
             {
                 rangeEventCheckIDRef_ = rangeEventCheckNode.Attributes["id"].Value;
                 RangeEventCheck ob = new RangeEventCheck(rangeEventCheckNode);
                 IDManager.SetID(rangeEventCheckIDRef_, ob);
             }
             else if (rangeEventCheckNode.Attributes["href"] != null)
             {
                 rangeEventCheckIDRef_ = rangeEventCheckNode.Attributes["href"].Value;
             }
             else
             {
                 rangeEventCheck_ = new RangeEventCheck(rangeEventCheckNode);
             }
         }
         else
         {
             rangeEventCheck_ = new RangeEventCheck(rangeEventCheckNode);
         }
     }
     
 
 }
示例#3
0
        public EventFunctionM(XmlNode xmlNode)
        {
            XmlNodeList nameNodeList = xmlNode.SelectNodes("name");

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

            foreach (XmlNode item in nameNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        nameIDRef = item.Attributes["id"].Name;
                        XsdTypeToken ob = XsdTypeToken();
                        IDManager.SetID(nameIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        nameIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        name = new XsdTypeToken(item);
                    }
                }
            }


            XmlNodeList indexSymbolNodeList = xmlNode.SelectNodes("indexSymbol");

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

            foreach (XmlNode item in indexSymbolNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        indexSymbolIDRef = item.Attributes["id"].Name;
                        XsdTypeToken ob = XsdTypeToken();
                        IDManager.SetID(indexSymbolIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        indexSymbolIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        indexSymbol = new XsdTypeToken(item);
                    }
                }
            }


            XmlNodeList upEventCheckNodeList = xmlNode.SelectNodes("upEventCheck");

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

            foreach (XmlNode item in upEventCheckNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        upEventCheckIDRef = item.Attributes["id"].Name;
                        UpEventCheck ob = UpEventCheck();
                        IDManager.SetID(upEventCheckIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        upEventCheckIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        upEventCheck = new UpEventCheck(item);
                    }
                }
            }


            XmlNodeList downEventCheckNodeList = xmlNode.SelectNodes("downEventCheck");

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

            foreach (XmlNode item in downEventCheckNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        downEventCheckIDRef = item.Attributes["id"].Name;
                        DownEventCheck ob = DownEventCheck();
                        IDManager.SetID(downEventCheckIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        downEventCheckIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        downEventCheck = new DownEventCheck(item);
                    }
                }
            }


            XmlNodeList updownEventCheckNodeList = xmlNode.SelectNodes("updownEventCheck");

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

            foreach (XmlNode item in updownEventCheckNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        updownEventCheckIDRef = item.Attributes["id"].Name;
                        UpDownEventCheck ob = UpDownEventCheck();
                        IDManager.SetID(updownEventCheckIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        updownEventCheckIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        updownEventCheck = new UpDownEventCheck(item);
                    }
                }
            }


            XmlNodeList rangeEventCheckNodeList = xmlNode.SelectNodes("rangeEventCheck");

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

            foreach (XmlNode item in rangeEventCheckNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        rangeEventCheckIDRef = item.Attributes["id"].Name;
                        RangeEventCheck ob = RangeEventCheck();
                        IDManager.SetID(rangeEventCheckIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        rangeEventCheckIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        rangeEventCheck = new RangeEventCheck(item);
                    }
                }
            }
        }
 public EventFunctionM(XmlNode xmlNode)
 {
     XmlNodeList nameNodeList = xmlNode.SelectNodes("name");
     if (nameNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in nameNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 nameIDRef = item.Attributes["id"].Name;
                 XsdTypeToken ob = XsdTypeToken();
                 IDManager.SetID(nameIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 nameIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 name = new XsdTypeToken(item);
             }
         }
     }
     
 
     XmlNodeList indexSymbolNodeList = xmlNode.SelectNodes("indexSymbol");
     if (indexSymbolNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in indexSymbolNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 indexSymbolIDRef = item.Attributes["id"].Name;
                 XsdTypeToken ob = XsdTypeToken();
                 IDManager.SetID(indexSymbolIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 indexSymbolIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 indexSymbol = new XsdTypeToken(item);
             }
         }
     }
     
 
     XmlNodeList upEventCheckNodeList = xmlNode.SelectNodes("upEventCheck");
     if (upEventCheckNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in upEventCheckNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 upEventCheckIDRef = item.Attributes["id"].Name;
                 UpEventCheck ob = UpEventCheck();
                 IDManager.SetID(upEventCheckIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 upEventCheckIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 upEventCheck = new UpEventCheck(item);
             }
         }
     }
     
 
     XmlNodeList downEventCheckNodeList = xmlNode.SelectNodes("downEventCheck");
     if (downEventCheckNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in downEventCheckNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 downEventCheckIDRef = item.Attributes["id"].Name;
                 DownEventCheck ob = DownEventCheck();
                 IDManager.SetID(downEventCheckIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 downEventCheckIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 downEventCheck = new DownEventCheck(item);
             }
         }
     }
     
 
     XmlNodeList updownEventCheckNodeList = xmlNode.SelectNodes("updownEventCheck");
     if (updownEventCheckNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in updownEventCheckNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 updownEventCheckIDRef = item.Attributes["id"].Name;
                 UpDownEventCheck ob = UpDownEventCheck();
                 IDManager.SetID(updownEventCheckIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 updownEventCheckIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 updownEventCheck = new UpDownEventCheck(item);
             }
         }
     }
     
 
     XmlNodeList rangeEventCheckNodeList = xmlNode.SelectNodes("rangeEventCheck");
     if (rangeEventCheckNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in rangeEventCheckNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 rangeEventCheckIDRef = item.Attributes["id"].Name;
                 RangeEventCheck ob = RangeEventCheck();
                 IDManager.SetID(rangeEventCheckIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 rangeEventCheckIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 rangeEventCheck = new RangeEventCheck(item);
             }
         }
     }
     
 
 }