public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.PayoffInfo serial_PayoffInfo = serial_Class as FpmlSerializedCSharp.PayoffInfo; FpmlSerializedCSharp.StopLossPayoff serial_StopLossPayoff = serial_PayoffInfo.StopLossPayoff_; FpmlSerializedCSharp.EventTriggerList serial_eventTriggerList = serial_StopLossPayoff.EventTriggerList_; string eventTriggerListtype = serial_eventTriggerList.Excel_type_.ValueStr; this.eventTriggerListViewModel_ = EventTriggerListViewModel.CreateEventTriggerList(eventTriggerListtype); this.eventTriggerListViewModel_.setFromSerial(serial_eventTriggerList); FpmlSerializedCSharp.BarrierInfo serial_barrierInfo = serial_StopLossPayoff.BarrierInfo_; string barrierInfotype = serial_barrierInfo.Excel_type_.ValueStr; this.barrierInfoViewModel_ = BarrierInfoViewModel.CreateBarrierInfo(barrierInfotype); this.barrierInfoViewModel_.setFromSerial(serial_barrierInfo); FpmlSerializedCSharp.ReturnCalculation serial_returnCalculation = serial_StopLossPayoff.ReturnCalculation_; string returnCalculationtype = serial_returnCalculation.Excel_type_.ValueStr; this.returnCalculationViewModel_ = ReturnCalculationViewModel.CreateReturnCalculation(returnCalculationtype); this.returnCalculationViewModel_.setFromSerial(serial_returnCalculation); FpmlSerializedCSharp.PayoffDateInfo serial_payoffDateInfo = serial_StopLossPayoff.PayoffDateInfo_; string payoffDateInfotype = serial_payoffDateInfo.Excel_type_.ValueStr; this.payoffDateInfoViewModel_ = PayoffDateInfoViewModel.CreatePayoffDateInfo(payoffDateInfotype); this.payoffDateInfoViewModel_.setFromSerial(serial_payoffDateInfo); }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.PayoffInfo serial_PayoffInfo = serial_Class as FpmlSerializedCSharp.PayoffInfo; FpmlSerializedCSharp.AutoCallablePayoff serial_AutoCallablePayoff = serial_PayoffInfo.AutoCallablePayoff_; FpmlSerializedCSharp.EventTriggerList serial_eventTriggerList = serial_AutoCallablePayoff.EventTriggerList_; string eventTriggerListtype = serial_eventTriggerList.Excel_type_.ValueStr; this.eventTriggerListViewModel_ = EventTriggerListViewModel.CreateEventTriggerList(eventTriggerListtype); this.eventTriggerListViewModel_.setFromSerial(serial_eventTriggerList); }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.PayoffInfo serial_PayoffInfo = serial_Class as FpmlSerializedCSharp.PayoffInfo; FpmlSerializedCSharp.StepDownNoKIPayoff serial_StepDownNoKIPayoff = serial_PayoffInfo.StepDownNoKIPayoff_; FpmlSerializedCSharp.EventTriggerList serial_eventTriggerList = serial_StepDownNoKIPayoff.EventTriggerList_; string eventTriggerListtype = serial_eventTriggerList.Excel_type_.ValueStr; this.eventTriggerListViewModel_ = EventTriggerListViewModel.CreateEventTriggerList(eventTriggerListtype); this.eventTriggerListViewModel_.setFromSerial(serial_eventTriggerList); FpmlSerializedCSharp.NoAutoCallReturnTrigger serial_noAutoCallReturnTrigger = serial_StepDownNoKIPayoff.NoAutoCallReturnTrigger_; string noAutoCallReturnTriggertype = serial_noAutoCallReturnTrigger.Excel_type_.ValueStr; this.noAutoCallReturnTriggerViewModel_ = NoAutoCallReturnTriggerViewModel.CreateNoAutoCallReturnTrigger(noAutoCallReturnTriggertype); this.noAutoCallReturnTriggerViewModel_.setFromSerial(serial_noAutoCallReturnTrigger); }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.PayoffInfo serial_PayoffInfo = serial_Class as FpmlSerializedCSharp.PayoffInfo; FpmlSerializedCSharp.StepDownKIPayoff serial_StepDownKIPayoff = serial_PayoffInfo.StepDownKIPayoff_; FpmlSerializedCSharp.EventTriggerList serial_eventTriggerList = serial_StepDownKIPayoff.EventTriggerList_; string eventTriggerListtype = serial_eventTriggerList.Excel_type_.ValueStr; this.eventTriggerListViewModel_ = EventTriggerListViewModel.CreateEventTriggerList(eventTriggerListtype); this.eventTriggerListViewModel_.setFromSerial(serial_eventTriggerList); FpmlSerializedCSharp.KiEventInfo serial_kiEventInfo = serial_StepDownKIPayoff.KiEventInfo_; string kiEventInfotype = serial_kiEventInfo.Excel_type_.ValueStr; this.kiEventInfoViewModel_ = KiEventInfoViewModel.CreateKiEventInfo(kiEventInfotype); this.kiEventInfoViewModel_.setFromSerial(serial_kiEventInfo); FpmlSerializedCSharp.NonKiEventInfo serial_nonKiEventInfo = serial_StepDownKIPayoff.NonKiEventInfo_; string nonKiEventInfotype = serial_nonKiEventInfo.Excel_type_.ValueStr; this.nonKiEventInfoViewModel_ = NonKiEventInfoViewModel.CreateNonKiEventInfo(nonKiEventInfotype); this.nonKiEventInfoViewModel_.setFromSerial(serial_nonKiEventInfo); }