public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.EventTrigger serial_EventTrigger = serial_Class as FpmlSerializedCSharp.EventTrigger; FpmlSerializedCSharp.SimpleEventCouponTrigger serial_SimpleEventCouponTrigger = serial_EventTrigger.SimpleEventCouponTrigger_; FpmlSerializedCSharp.EventCalculationInfo serial_eventCalculationInfo = serial_SimpleEventCouponTrigger.EventCalculationInfo_; string eventCalculationInfotype = serial_eventCalculationInfo.Excel_type_.ValueStr; this.eventCalculationInfoViewModel_ = EventCalculationInfoViewModel.CreateEventCalculationInfo(eventCalculationInfotype); this.eventCalculationInfoViewModel_.setFromSerial(serial_eventCalculationInfo); FpmlSerializedCSharp.ReturnCalculationInfo serial_returnCalculationInfo = serial_SimpleEventCouponTrigger.ReturnCalculationInfo_; string returnCalculationInfotype = serial_returnCalculationInfo.Excel_type_.ValueStr; this.returnCalculationInfoViewModel_ = ReturnCalculationInfoViewModel.CreateReturnCalculationInfo(returnCalculationInfotype); this.returnCalculationInfoViewModel_.setFromSerial(serial_returnCalculationInfo); FpmlSerializedCSharp.ComplementReturnCalculation serial_complementReturnCalculation = serial_SimpleEventCouponTrigger.ComplementReturnCalculation_; string complementReturnCalculationtype = serial_complementReturnCalculation.Excel_type_.ValueStr; this.complementReturnCalculationViewModel_ = ComplementReturnCalculationViewModel.CreateComplementReturnCalculation(complementReturnCalculationtype); this.complementReturnCalculationViewModel_.setFromSerial(serial_complementReturnCalculation); FpmlSerializedCSharp.PayoffDateInfo serial_payoffDateInfo = serial_SimpleEventCouponTrigger.PayoffDateInfo_; string payoffDateInfotype = serial_payoffDateInfo.Excel_type_.ValueStr; this.payoffDateInfoViewModel_ = PayoffDateInfoViewModel.CreatePayoffDateInfo(payoffDateInfotype); this.payoffDateInfoViewModel_.setFromSerial(serial_payoffDateInfo); this.isExpired_ = serial_SimpleEventCouponTrigger.IsExpired_.ValueStr; }
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.ComplementReturnCalculation serial_ComplementReturnCalculation = serial_Class as FpmlSerializedCSharp.ComplementReturnCalculation; FpmlSerializedCSharp.ReturnCalculationInfo serial_returnCalculationInfo = serial_ComplementReturnCalculation.ReturnCalculationInfo_; string returnCalculationInfotype = serial_returnCalculationInfo.Excel_type_.ValueStr; this.returnCalculationInfoViewModel_ = ReturnCalculationInfoViewModel.CreateReturnCalculationInfo(returnCalculationInfotype); this.returnCalculationInfoViewModel_.setFromSerial(serial_returnCalculationInfo); }
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.AutoTerminationTrigger serial_AutoTerminationTrigger = serial_Class as FpmlSerializedCSharp.AutoTerminationTrigger; FpmlSerializedCSharp.EventCalculationInfo serial_eventCalculationInfo = serial_AutoTerminationTrigger.EventCalculationInfo_; string eventCalculationInfotype = serial_eventCalculationInfo.Excel_type_.ValueStr; this.eventCalculationInfoViewModel_ = EventCalculationInfoViewModel.CreateEventCalculationInfo(eventCalculationInfotype); this.eventCalculationInfoViewModel_.setFromSerial(serial_eventCalculationInfo); FpmlSerializedCSharp.ReturnCalculationInfo serial_returnCalculationInfo = serial_AutoTerminationTrigger.ReturnCalculationInfo_; string returnCalculationInfotype = serial_returnCalculationInfo.Excel_type_.ValueStr; this.returnCalculationInfoViewModel_ = ReturnCalculationInfoViewModel.CreateReturnCalculationInfo(returnCalculationInfotype); this.returnCalculationInfoViewModel_.setFromSerial(serial_returnCalculationInfo); FpmlSerializedCSharp.PayoffDateInfo serial_payoffDateInfo = serial_AutoTerminationTrigger.PayoffDateInfo_; string payoffDateInfotype = serial_payoffDateInfo.Excel_type_.ValueStr; this.payoffDateInfoViewModel_ = PayoffDateInfoViewModel.CreatePayoffDateInfo(payoffDateInfotype); this.payoffDateInfoViewModel_.setFromSerial(serial_payoffDateInfo); }