public StepDownNoKIPayoff(XmlNode xmlNode) : base(xmlNode) { XmlNode eventTriggerListNode = xmlNode.SelectSingleNode("eventTriggerList"); if (eventTriggerListNode != null) { if (eventTriggerListNode.Attributes["href"] != null || eventTriggerListNode.Attributes["id"] != null) { if (eventTriggerListNode.Attributes["id"] != null) { eventTriggerListIDRef_ = eventTriggerListNode.Attributes["id"].Value; EventTriggerList ob = new EventTriggerList(eventTriggerListNode); IDManager.SetID(eventTriggerListIDRef_, ob); } else if (eventTriggerListNode.Attributes["href"] != null) { eventTriggerListIDRef_ = eventTriggerListNode.Attributes["href"].Value; } else { eventTriggerList_ = new EventTriggerList(eventTriggerListNode); } } else { eventTriggerList_ = new EventTriggerList(eventTriggerListNode); } } XmlNode noAutoCallReturnTriggerNode = xmlNode.SelectSingleNode("noAutoCallReturnTrigger"); if (noAutoCallReturnTriggerNode != null) { if (noAutoCallReturnTriggerNode.Attributes["href"] != null || noAutoCallReturnTriggerNode.Attributes["id"] != null) { if (noAutoCallReturnTriggerNode.Attributes["id"] != null) { noAutoCallReturnTriggerIDRef_ = noAutoCallReturnTriggerNode.Attributes["id"].Value; NoAutoCallReturnTrigger ob = new NoAutoCallReturnTrigger(noAutoCallReturnTriggerNode); IDManager.SetID(noAutoCallReturnTriggerIDRef_, ob); } else if (noAutoCallReturnTriggerNode.Attributes["href"] != null) { noAutoCallReturnTriggerIDRef_ = noAutoCallReturnTriggerNode.Attributes["href"].Value; } else { noAutoCallReturnTrigger_ = new NoAutoCallReturnTrigger(noAutoCallReturnTriggerNode); } } else { noAutoCallReturnTrigger_ = new NoAutoCallReturnTrigger(noAutoCallReturnTriggerNode); } } }
public StepDownNoKIPayoff(XmlNode xmlNode) : base(xmlNode) { XmlNode eventTriggerListNode = xmlNode.SelectSingleNode("eventTriggerList"); if (eventTriggerListNode != null) { if (eventTriggerListNode.Attributes["href"] != null || eventTriggerListNode.Attributes["id"] != null) { if (eventTriggerListNode.Attributes["id"] != null) { eventTriggerListIDRef_ = eventTriggerListNode.Attributes["id"].Value; EventTriggerList ob = new EventTriggerList(eventTriggerListNode); IDManager.SetID(eventTriggerListIDRef_, ob); } else if (eventTriggerListNode.Attributes["href"] != null) { eventTriggerListIDRef_ = eventTriggerListNode.Attributes["href"].Value; } else { eventTriggerList_ = new EventTriggerList(eventTriggerListNode); } } else { eventTriggerList_ = new EventTriggerList(eventTriggerListNode); } } XmlNode noAutoCallReturnTriggerNode = xmlNode.SelectSingleNode("noAutoCallReturnTrigger"); if (noAutoCallReturnTriggerNode != null) { if (noAutoCallReturnTriggerNode.Attributes["href"] != null || noAutoCallReturnTriggerNode.Attributes["id"] != null) { if (noAutoCallReturnTriggerNode.Attributes["id"] != null) { noAutoCallReturnTriggerIDRef_ = noAutoCallReturnTriggerNode.Attributes["id"].Value; NoAutoCallReturnTrigger ob = new NoAutoCallReturnTrigger(noAutoCallReturnTriggerNode); IDManager.SetID(noAutoCallReturnTriggerIDRef_, ob); } else if (noAutoCallReturnTriggerNode.Attributes["href"] != null) { noAutoCallReturnTriggerIDRef_ = noAutoCallReturnTriggerNode.Attributes["href"].Value; } else { noAutoCallReturnTrigger_ = new NoAutoCallReturnTrigger(noAutoCallReturnTriggerNode); } } else { noAutoCallReturnTrigger_ = new NoAutoCallReturnTrigger(noAutoCallReturnTriggerNode); } } }