public PreCalculation(XmlNode xmlNode) : base(xmlNode) { XmlNode variableCalListNode = xmlNode.SelectSingleNode("variableCalList"); if (variableCalListNode != null) { if (variableCalListNode.Attributes["href"] != null || variableCalListNode.Attributes["id"] != null) { if (variableCalListNode.Attributes["id"] != null) { variableCalListIDRef_ = variableCalListNode.Attributes["id"].Value; VariableCalList ob = new VariableCalList(variableCalListNode); IDManager.SetID(variableCalListIDRef_, ob); } else if (variableCalListNode.Attributes["href"] != null) { variableCalListIDRef_ = variableCalListNode.Attributes["href"].Value; } else { variableCalList_ = new VariableCalList(variableCalListNode); } } else { variableCalList_ = new VariableCalList(variableCalListNode); } } }
public ComplexNDReturnCal(XmlNode xmlNode) : base(xmlNode) { XmlNode variableCalListNode = xmlNode.SelectSingleNode("variableCalList"); if (variableCalListNode != null) { if (variableCalListNode.Attributes["href"] != null || variableCalListNode.Attributes["id"] != null) { if (variableCalListNode.Attributes["id"] != null) { variableCalListIDRef_ = variableCalListNode.Attributes["id"].Value; VariableCalList ob = new VariableCalList(variableCalListNode); IDManager.SetID(variableCalListIDRef_, ob); } else if (variableCalListNode.Attributes["href"] != null) { variableCalListIDRef_ = variableCalListNode.Attributes["href"].Value; } else { variableCalList_ = new VariableCalList(variableCalListNode); } } else { variableCalList_ = new VariableCalList(variableCalListNode); } } XmlNode operatorNDNode = xmlNode.SelectSingleNode("operatorND"); if (operatorNDNode != null) { if (operatorNDNode.Attributes["href"] != null || operatorNDNode.Attributes["id"] != null) { if (operatorNDNode.Attributes["id"] != null) { operatorNDIDRef_ = operatorNDNode.Attributes["id"].Value; OperatorND ob = new OperatorND(operatorNDNode); IDManager.SetID(operatorNDIDRef_, ob); } else if (operatorNDNode.Attributes["href"] != null) { operatorNDIDRef_ = operatorNDNode.Attributes["href"].Value; } else { operatorND_ = new OperatorND(operatorNDNode); } } else { operatorND_ = new OperatorND(operatorNDNode); } } }