public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.PayoffInfoAnalytic serial_PayoffInfoAnalytic = serial_Class as FpmlSerializedCSharp.PayoffInfoAnalytic; FpmlSerializedCSharp.StandardPayoff_A serial_StandardPayoff_A = serial_PayoffInfoAnalytic.StandardPayoff_A_; FpmlSerializedCSharp.EventTriggerList_A serial_eventTriggerList_A = serial_StandardPayoff_A.EventTriggerList_A_; string eventTriggerList_Atype = serial_eventTriggerList_A.Excel_type_.ValueStr; this.eventTriggerList_AViewModel_ = EventTriggerList_AViewModel.CreateEventTriggerList_A(eventTriggerList_Atype); this.eventTriggerList_AViewModel_.setFromSerial(serial_eventTriggerList_A); }
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.FixedBondInstrument serial_FixedBondInstrument = serial_Class as FpmlSerializedCSharp.FixedBondInstrument; FpmlSerializedCSharp.BondInformation serial_bondInformation = serial_FixedBondInstrument.BondInformation_; string bondInformationtype = serial_bondInformation.Excel_type_.ValueStr; this.bondInformationViewModel_ = BondInformationViewModel.CreateBondInformation(bondInformationtype); this.bondInformationViewModel_.setFromSerial(serial_bondInformation); FpmlSerializedCSharp.BondCouponInfo serial_bondCouponInfo = serial_FixedBondInstrument.BondCouponInfo_; string bondCouponInfotype = serial_bondCouponInfo.Excel_type_.ValueStr; this.bondCouponInfoViewModel_ = BondCouponInfoViewModel.CreateBondCouponInfo(bondCouponInfotype); this.bondCouponInfoViewModel_.setFromSerial(serial_bondCouponInfo); FpmlSerializedCSharp.PayoffInfoAnalytic serial_payoffInfoAnalytic = serial_FixedBondInstrument.PayoffInfoAnalytic_; string payoffInfoAnalytictype = serial_payoffInfoAnalytic.Excel_type_.ValueStr; this.payoffInfoAnalyticViewModel_ = PayoffInfoAnalyticViewModel.CreatePayoffInfoAnalytic(payoffInfoAnalytictype); this.payoffInfoAnalyticViewModel_.setFromSerial(serial_payoffInfoAnalytic); }