public History(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode hisoryDataNode = xmlNode.SelectSingleNode("hisoryData");
     
     if (hisoryDataNode != null)
     {
         if (hisoryDataNode.Attributes["href"] != null || hisoryDataNode.Attributes["id"] != null) 
         {
             if (hisoryDataNode.Attributes["id"] != null) 
             {
                 hisoryDataIDRef_ = hisoryDataNode.Attributes["id"].Value;
                 HisoryData ob = new HisoryData(hisoryDataNode);
                 IDManager.SetID(hisoryDataIDRef_, ob);
             }
             else if (hisoryDataNode.Attributes["href"] != null)
             {
                 hisoryDataIDRef_ = hisoryDataNode.Attributes["href"].Value;
             }
             else
             {
                 hisoryData_ = new HisoryData(hisoryDataNode);
             }
         }
         else
         {
             hisoryData_ = new HisoryData(hisoryDataNode);
         }
     }
     
 
 }
Example #2
0
        public History(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode hisoryDataNode = xmlNode.SelectSingleNode("hisoryData");

            if (hisoryDataNode != null)
            {
                if (hisoryDataNode.Attributes["href"] != null || hisoryDataNode.Attributes["id"] != null)
                {
                    if (hisoryDataNode.Attributes["id"] != null)
                    {
                        hisoryDataIDRef_ = hisoryDataNode.Attributes["id"].Value;
                        HisoryData ob = new HisoryData(hisoryDataNode);
                        IDManager.SetID(hisoryDataIDRef_, ob);
                    }
                    else if (hisoryDataNode.Attributes["href"] != null)
                    {
                        hisoryDataIDRef_ = hisoryDataNode.Attributes["href"].Value;
                    }
                    else
                    {
                        hisoryData_ = new HisoryData(hisoryDataNode);
                    }
                }
                else
                {
                    hisoryData_ = new HisoryData(hisoryDataNode);
                }
            }
        }
 public ProductInnerXml(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode instrumentNode = xmlNode.SelectSingleNode("instrument");
     
     if (instrumentNode != null)
     {
         if (instrumentNode.Attributes["href"] != null || instrumentNode.Attributes["id"] != null) 
         {
             if (instrumentNode.Attributes["id"] != null) 
             {
                 instrumentIDRef_ = instrumentNode.Attributes["id"].Value;
                 Instrument ob = new Instrument(instrumentNode);
                 IDManager.SetID(instrumentIDRef_, ob);
             }
             else if (instrumentNode.Attributes["href"] != null)
             {
                 instrumentIDRef_ = instrumentNode.Attributes["href"].Value;
             }
             else
             {
                 instrument_ = new Instrument(instrumentNode);
             }
         }
         else
         {
             instrument_ = new Instrument(instrumentNode);
         }
     }
     
 
     XmlNode pricingNode = xmlNode.SelectSingleNode("pricing");
     
     if (pricingNode != null)
     {
         if (pricingNode.Attributes["href"] != null || pricingNode.Attributes["id"] != null) 
         {
             if (pricingNode.Attributes["id"] != null) 
             {
                 pricingIDRef_ = pricingNode.Attributes["id"].Value;
                 Pricing ob = new Pricing(pricingNode);
                 IDManager.SetID(pricingIDRef_, ob);
             }
             else if (pricingNode.Attributes["href"] != null)
             {
                 pricingIDRef_ = pricingNode.Attributes["href"].Value;
             }
             else
             {
                 pricing_ = new Pricing(pricingNode);
             }
         }
         else
         {
             pricing_ = new Pricing(pricingNode);
         }
     }
     
 
     XmlNode hisoryDataNode = xmlNode.SelectSingleNode("hisoryData");
     
     if (hisoryDataNode != null)
     {
         if (hisoryDataNode.Attributes["href"] != null || hisoryDataNode.Attributes["id"] != null) 
         {
             if (hisoryDataNode.Attributes["id"] != null) 
             {
                 hisoryDataIDRef_ = hisoryDataNode.Attributes["id"].Value;
                 HisoryData ob = new HisoryData(hisoryDataNode);
                 IDManager.SetID(hisoryDataIDRef_, ob);
             }
             else if (hisoryDataNode.Attributes["href"] != null)
             {
                 hisoryDataIDRef_ = hisoryDataNode.Attributes["href"].Value;
             }
             else
             {
                 hisoryData_ = new HisoryData(hisoryDataNode);
             }
         }
         else
         {
             hisoryData_ = new HisoryData(hisoryDataNode);
         }
     }
     
 
 }
Example #4
0
        public ProductInnerXml(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode instrumentNode = xmlNode.SelectSingleNode("instrument");

            if (instrumentNode != null)
            {
                if (instrumentNode.Attributes["href"] != null || instrumentNode.Attributes["id"] != null)
                {
                    if (instrumentNode.Attributes["id"] != null)
                    {
                        instrumentIDRef_ = instrumentNode.Attributes["id"].Value;
                        Instrument ob = new Instrument(instrumentNode);
                        IDManager.SetID(instrumentIDRef_, ob);
                    }
                    else if (instrumentNode.Attributes["href"] != null)
                    {
                        instrumentIDRef_ = instrumentNode.Attributes["href"].Value;
                    }
                    else
                    {
                        instrument_ = new Instrument(instrumentNode);
                    }
                }
                else
                {
                    instrument_ = new Instrument(instrumentNode);
                }
            }


            XmlNode pricingNode = xmlNode.SelectSingleNode("pricing");

            if (pricingNode != null)
            {
                if (pricingNode.Attributes["href"] != null || pricingNode.Attributes["id"] != null)
                {
                    if (pricingNode.Attributes["id"] != null)
                    {
                        pricingIDRef_ = pricingNode.Attributes["id"].Value;
                        Pricing ob = new Pricing(pricingNode);
                        IDManager.SetID(pricingIDRef_, ob);
                    }
                    else if (pricingNode.Attributes["href"] != null)
                    {
                        pricingIDRef_ = pricingNode.Attributes["href"].Value;
                    }
                    else
                    {
                        pricing_ = new Pricing(pricingNode);
                    }
                }
                else
                {
                    pricing_ = new Pricing(pricingNode);
                }
            }


            XmlNode hisoryDataNode = xmlNode.SelectSingleNode("hisoryData");

            if (hisoryDataNode != null)
            {
                if (hisoryDataNode.Attributes["href"] != null || hisoryDataNode.Attributes["id"] != null)
                {
                    if (hisoryDataNode.Attributes["id"] != null)
                    {
                        hisoryDataIDRef_ = hisoryDataNode.Attributes["id"].Value;
                        HisoryData ob = new HisoryData(hisoryDataNode);
                        IDManager.SetID(hisoryDataIDRef_, ob);
                    }
                    else if (hisoryDataNode.Attributes["href"] != null)
                    {
                        hisoryDataIDRef_ = hisoryDataNode.Attributes["href"].Value;
                    }
                    else
                    {
                        hisoryData_ = new HisoryData(hisoryDataNode);
                    }
                }
                else
                {
                    hisoryData_ = new HisoryData(hisoryDataNode);
                }
            }
        }