コード例 #1
0
 public VariableCalList(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode variableCalculationNode = xmlNode.SelectSingleNode("variableCalculation");
     
     if (variableCalculationNode != null)
     {
         if (variableCalculationNode.Attributes["href"] != null || variableCalculationNode.Attributes["id"] != null) 
         {
             if (variableCalculationNode.Attributes["id"] != null) 
             {
                 variableCalculationIDRef_ = variableCalculationNode.Attributes["id"].Value;
                 VariableCalculation ob = new VariableCalculation(variableCalculationNode);
                 IDManager.SetID(variableCalculationIDRef_, ob);
             }
             else if (variableCalculationNode.Attributes["href"] != null)
             {
                 variableCalculationIDRef_ = variableCalculationNode.Attributes["href"].Value;
             }
             else
             {
                 variableCalculation_ = new VariableCalculation(variableCalculationNode);
             }
         }
         else
         {
             variableCalculation_ = new VariableCalculation(variableCalculationNode);
         }
     }
     
 
 }
コード例 #2
0
        public VariableCalList(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode variableCalculationNode = xmlNode.SelectSingleNode("variableCalculation");

            if (variableCalculationNode != null)
            {
                if (variableCalculationNode.Attributes["href"] != null || variableCalculationNode.Attributes["id"] != null)
                {
                    if (variableCalculationNode.Attributes["id"] != null)
                    {
                        variableCalculationIDRef_ = variableCalculationNode.Attributes["id"].Value;
                        VariableCalculation ob = new VariableCalculation(variableCalculationNode);
                        IDManager.SetID(variableCalculationIDRef_, ob);
                    }
                    else if (variableCalculationNode.Attributes["href"] != null)
                    {
                        variableCalculationIDRef_ = variableCalculationNode.Attributes["href"].Value;
                    }
                    else
                    {
                        variableCalculation_ = new VariableCalculation(variableCalculationNode);
                    }
                }
                else
                {
                    variableCalculation_ = new VariableCalculation(variableCalculationNode);
                }
            }
        }