public void load(XmlNode node) { XmlNode headerNode = node.SelectSingleNode("instrument/header"); XmlNode issueInfoSwapNode = node.SelectSingleNode("instrument/issueInformation/swap"); XmlNode creditDefaultSwapNode = node.SelectSingleNode("instrument/creditDefaultSwap"); RiskMonitor.CreditDefaultSwap serial_cds = new RiskMonitor.CreditDefaultSwap(creditDefaultSwapNode); this.referenceInfoList_ = new ObservableCollection <ReferenceInfo>(); foreach (var item in serial_cds.ReferenceInformationList_.ReferenceInformation_) { ReferenceInfo referenceInfo = new ReferenceInfo(); referenceInfo.setReferenceInfo(item); this.referenceInfoList_.Add(referenceInfo); } }
public void load(XmlNode node) { XmlNode headerNode = node.SelectSingleNode("instrument/header"); XmlNode issueInfoSwapNode = node.SelectSingleNode("instrument/issueInformation/swap"); XmlNode creditDefaultSwapNode = node.SelectSingleNode("instrument/creditDefaultSwap"); RiskMonitor.CreditDefaultSwap serial_cds = new RiskMonitor.CreditDefaultSwap(creditDefaultSwapNode); this.referenceInfoList_ = new ObservableCollection<ReferenceInfo>(); foreach (var item in serial_cds.ReferenceInformationList_.ReferenceInformation_) { ReferenceInfo referenceInfo = new ReferenceInfo(); referenceInfo.setReferenceInfo(item); this.referenceInfoList_.Add(referenceInfo); } }