public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.StandardOption serial_StandardOption = serial_Class as FpmlSerializedCSharp.StandardOption; FpmlSerializedCSharp.BarrierWithConstRebateCallOption serial_BarrierWithConstRebateCallOption = serial_StandardOption.BarrierWithConstRebateCallOption_; FpmlSerializedCSharp.PayoffDateInfo serial_payoffDateInfo = serial_BarrierWithConstRebateCallOption.PayoffDateInfo_; string payoffDateInfotype = serial_payoffDateInfo.Excel_type_.ValueStr; this.payoffDateInfoViewModel_ = PayoffDateInfoViewModel.CreatePayoffDateInfo(payoffDateInfotype); this.payoffDateInfoViewModel_.setFromSerial(serial_payoffDateInfo); this.participateRate_ = serial_BarrierWithConstRebateCallOption.ParticipateRate_.ValueStr; FpmlSerializedCSharp.ReferenceCalculationInfo serial_referenceCalculationInfo = serial_BarrierWithConstRebateCallOption.ReferenceCalculationInfo_; string referenceCalculationInfotype = serial_referenceCalculationInfo.Excel_type_.ValueStr; this.referenceCalculationInfoViewModel_ = ReferenceCalculationInfoViewModel.CreateReferenceCalculationInfo(referenceCalculationInfotype); this.referenceCalculationInfoViewModel_.setFromSerial(serial_referenceCalculationInfo); FpmlSerializedCSharp.BarrierInfo serial_barrierInfo = serial_BarrierWithConstRebateCallOption.BarrierInfo_; string barrierInfotype = serial_barrierInfo.Excel_type_.ValueStr; this.barrierInfoViewModel_ = BarrierInfoViewModel.CreateBarrierInfo(barrierInfotype); this.barrierInfoViewModel_.setFromSerial(serial_barrierInfo); this.strike_ = serial_BarrierWithConstRebateCallOption.Strike_.ValueStr; this.lowerBound_ = serial_BarrierWithConstRebateCallOption.LowerBound_.ValueStr; this.rebateRate_ = serial_BarrierWithConstRebateCallOption.RebateRate_.ValueStr; }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.EventTrigger serial_EventTrigger = serial_Class as FpmlSerializedCSharp.EventTrigger; FpmlSerializedCSharp.SimpleRangeAccrualRateTrigger serial_SimpleRangeAccrualRateTrigger = serial_EventTrigger.SimpleRangeAccrualRateTrigger_; this.dayCounter_ = serial_SimpleRangeAccrualRateTrigger.DayCounter_.ValueStr; this.calculationStartDate_ = StringConverter.xmlDateToDateTime(serial_SimpleRangeAccrualRateTrigger.CalculationStartDate_.ValueStr); this.calculationEndDate_ = StringConverter.xmlDateToDateTime(serial_SimpleRangeAccrualRateTrigger.CalculationEndDate_.ValueStr); FpmlSerializedCSharp.ReferenceCalculationInfo serial_referenceCalculationInfo = serial_SimpleRangeAccrualRateTrigger.ReferenceCalculationInfo_; string referenceCalculationInfotype = serial_referenceCalculationInfo.Excel_type_.ValueStr; this.referenceCalculationInfoViewModel_ = ReferenceCalculationInfoViewModel.CreateReferenceCalculationInfo(referenceCalculationInfotype); this.referenceCalculationInfoViewModel_.setFromSerial(serial_referenceCalculationInfo); FpmlSerializedCSharp.SimpleRangeEventList serial_simpleRangeEventList = serial_SimpleRangeAccrualRateTrigger.SimpleRangeEventList_; string simpleRangeEventListtype = serial_simpleRangeEventList.Excel_type_.ValueStr; this.simpleRangeEventListViewModel_ = SimpleRangeEventListViewModel.CreateSimpleRangeEventList(simpleRangeEventListtype); this.simpleRangeEventListViewModel_.setFromSerial(serial_simpleRangeEventList); FpmlSerializedCSharp.PayoffDateInfo serial_payoffDateInfo = serial_SimpleRangeAccrualRateTrigger.PayoffDateInfo_; string payoffDateInfotype = serial_payoffDateInfo.Excel_type_.ValueStr; this.payoffDateInfoViewModel_ = PayoffDateInfoViewModel.CreatePayoffDateInfo(payoffDateInfotype); this.payoffDateInfoViewModel_.setFromSerial(serial_payoffDateInfo); this.denumerDateNum_ = serial_SimpleRangeAccrualRateTrigger.DenumerDateNum_.ValueStr; }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.PayoffInfo serial_PayoffInfo = serial_Class as FpmlSerializedCSharp.PayoffInfo; FpmlSerializedCSharp.CompositeSumOptionPayoff serial_CompositeSumOptionPayoff = serial_PayoffInfo.CompositeSumOptionPayoff_; FpmlSerializedCSharp.FixingDateInfo serial_fixingDateInfo = serial_CompositeSumOptionPayoff.FixingDateInfo_; string fixingDateInfotype = serial_fixingDateInfo.Excel_type_.ValueStr; this.fixingDateInfoViewModel_ = FixingDateInfoViewModel.CreateFixingDateInfo(fixingDateInfotype); this.fixingDateInfoViewModel_.setFromSerial(serial_fixingDateInfo); FpmlSerializedCSharp.PayoffDateInfo serial_payoffDateInfo = serial_CompositeSumOptionPayoff.PayoffDateInfo_; string payoffDateInfotype = serial_payoffDateInfo.Excel_type_.ValueStr; this.payoffDateInfoViewModel_ = PayoffDateInfoViewModel.CreatePayoffDateInfo(payoffDateInfotype); this.payoffDateInfoViewModel_.setFromSerial(serial_payoffDateInfo); FpmlSerializedCSharp.ReferenceCalculationInfo serial_referenceCalculationInfo = serial_CompositeSumOptionPayoff.ReferenceCalculationInfo_; string referenceCalculationInfotype = serial_referenceCalculationInfo.Excel_type_.ValueStr; this.referenceCalculationInfoViewModel_ = ReferenceCalculationInfoViewModel.CreateReferenceCalculationInfo(referenceCalculationInfotype); this.referenceCalculationInfoViewModel_.setFromSerial(serial_referenceCalculationInfo); List <FpmlSerializedCSharp.StandardOption> serial_standardOption = serial_CompositeSumOptionPayoff.StandardOption_; this.standardOptionViewModel_ = new ObservableCollection <StandardOptionViewModel>(); foreach (var item in serial_standardOption) { string type = item.Excel_type_.ValueStr; StandardOptionViewModel viewModel = StandardOptionViewModel.CreateStandardOption(type); viewModel.setFromSerial(item); this.standardOptionViewModel_.Add(viewModel); } }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.EventTrigger serial_EventTrigger = serial_Class as FpmlSerializedCSharp.EventTrigger; FpmlSerializedCSharp.VanillaRateTrigger serial_VanillaRateTrigger = serial_EventTrigger.VanillaRateTrigger_; this.dayCounter_ = serial_VanillaRateTrigger.DayCounter_.ValueStr; this.calculationStartDate_ = StringConverter.xmlDateToDateTime(serial_VanillaRateTrigger.CalculationStartDate_.ValueStr); this.calculationEndDate_ = StringConverter.xmlDateToDateTime(serial_VanillaRateTrigger.CalculationEndDate_.ValueStr); this.gearing_ = serial_VanillaRateTrigger.Gearing_.ValueStr; this.spread_ = serial_VanillaRateTrigger.Spread_.ValueStr; FpmlSerializedCSharp.ReferenceCalculationInfo serial_referenceCalculationInfo = serial_VanillaRateTrigger.ReferenceCalculationInfo_; string referenceCalculationInfotype = serial_referenceCalculationInfo.Excel_type_.ValueStr; this.referenceCalculationInfoViewModel_ = ReferenceCalculationInfoViewModel.CreateReferenceCalculationInfo(referenceCalculationInfotype); this.referenceCalculationInfoViewModel_.setFromSerial(serial_referenceCalculationInfo); FpmlSerializedCSharp.PayoffDateInfo serial_payoffDateInfo = serial_VanillaRateTrigger.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.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 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.EventTrigger serial_EventTrigger = serial_Class as FpmlSerializedCSharp.EventTrigger; FpmlSerializedCSharp.AutoCallConstReturnTrigger serial_AutoCallConstReturnTrigger = serial_EventTrigger.AutoCallConstReturnTrigger_; this.dateOrder_ = serial_AutoCallConstReturnTrigger.DateOrder_.ValueStr; FpmlSerializedCSharp.FixingDateInfo serial_fixingDateInfo = serial_AutoCallConstReturnTrigger.FixingDateInfo_; string fixingDateInfotype = serial_fixingDateInfo.Excel_type_.ValueStr; this.fixingDateInfoViewModel_ = FixingDateInfoViewModel.CreateFixingDateInfo(fixingDateInfotype); this.fixingDateInfoViewModel_.setFromSerial(serial_fixingDateInfo); FpmlSerializedCSharp.PayoffDateInfo serial_payoffDateInfo = serial_AutoCallConstReturnTrigger.PayoffDateInfo_; string payoffDateInfotype = serial_payoffDateInfo.Excel_type_.ValueStr; this.payoffDateInfoViewModel_ = PayoffDateInfoViewModel.CreatePayoffDateInfo(payoffDateInfotype); this.payoffDateInfoViewModel_.setFromSerial(serial_payoffDateInfo); this.trigger_ = serial_AutoCallConstReturnTrigger.Trigger_.ValueStr; this.return_ = serial_AutoCallConstReturnTrigger.Return_.ValueStr; this.averageDays_ = serial_AutoCallConstReturnTrigger.AverageDays_.ValueStr; this.isExpired_ = serial_AutoCallConstReturnTrigger.IsExpired_.ValueStr; }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { base.baseSetFromSerial(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_; this.eventCalculationInfoViewModel_.setFromSerial(serial_eventCalculationInfo); FpmlSerializedCSharp.ReturnCalculationInfo serial_returnCalculationInfo = serial_SimpleEventCouponTrigger.ReturnCalculationInfo_; this.returnCalculationInfoViewModel_.setFromSerial(serial_returnCalculationInfo); FpmlSerializedCSharp.ComplementReturnCalculation serial_complementReturnCalculation = serial_SimpleEventCouponTrigger.ComplementReturnCalculation_; this.complementReturnCalculationViewModel_.setFromSerial(serial_complementReturnCalculation); FpmlSerializedCSharp.PayoffDateInfo serial_payoffDateInfo = serial_SimpleEventCouponTrigger.PayoffDateInfo_; this.payoffDateInfoViewModel_.setFromSerial(serial_payoffDateInfo); this.isExpired_ = serial_SimpleEventCouponTrigger.IsExpired_.ValueStr; //this.view_ = new SimpleEventCouponTriggerView(); this.view_.DataContext = this; }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.EventTrigger serial_EventTrigger = serial_Class as FpmlSerializedCSharp.EventTrigger; FpmlSerializedCSharp.SimpleRangeConstReturnTrigger serial_SimpleRangeConstReturnTrigger = serial_EventTrigger.SimpleRangeConstReturnTrigger_; this.dateOrder_ = serial_SimpleRangeConstReturnTrigger.DateOrder_.ValueStr; FpmlSerializedCSharp.SimpleRangeEventCal serial_simpleRangeEventCal = serial_SimpleRangeConstReturnTrigger.SimpleRangeEventCal_; string simpleRangeEventCaltype = serial_simpleRangeEventCal.Excel_type_.ValueStr; this.simpleRangeEventCalViewModel_ = SimpleRangeEventCalViewModel.CreateSimpleRangeEventCal(simpleRangeEventCaltype); this.simpleRangeEventCalViewModel_.setFromSerial(serial_simpleRangeEventCal); FpmlSerializedCSharp.PayoffDateInfo serial_payoffDateInfo = serial_SimpleRangeConstReturnTrigger.PayoffDateInfo_; string payoffDateInfotype = serial_payoffDateInfo.Excel_type_.ValueStr; this.payoffDateInfoViewModel_ = PayoffDateInfoViewModel.CreatePayoffDateInfo(payoffDateInfotype); this.payoffDateInfoViewModel_.setFromSerial(serial_payoffDateInfo); this.constReturn_ = serial_SimpleRangeConstReturnTrigger.ConstReturn_.ValueStr; this.averageDays_ = serial_SimpleRangeConstReturnTrigger.AverageDays_.ValueStr; this.isExpired_ = serial_SimpleRangeConstReturnTrigger.IsExpired_.ValueStr; }
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.PayoffDateInfo serial_PayoffDateInfo = serial_Class as FpmlSerializedCSharp.PayoffDateInfo; FpmlSerializedCSharp.FixingDateInfo serial_fixingDateInfo = serial_PayoffDateInfo.FixingDateInfo_; string fixingDateInfotype = serial_fixingDateInfo.Excel_type_.ValueStr; this.fixingDateInfoViewModel_ = FixingDateInfoViewModel.CreateFixingDateInfo(fixingDateInfotype); this.fixingDateInfoViewModel_.setFromSerial(serial_fixingDateInfo); }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.EventTrigge serial_EventTrigge = serial_Class as FpmlSerializedCSharp.EventTrigge; FpmlSerializedCSharp.RedemptionNotionalTrigger serial_RedemptionNotionalTrigger = serial_EventTrigge.RedemptionNotionalTrigger_; FpmlSerializedCSharp.PayoffDateInfo serial_payoffDateInfo = serial_RedemptionNotionalTrigger.PayoffDateInfo_; string payoffDateInfotype = serial_payoffDateInfo.Excel_type_.ValueStr; this.payoffDateInfoViewModel_ = PayoffDateInfoViewModel.CreatePayoffDateInfo(payoffDateInfotype); this.payoffDateInfoViewModel_.setFromSerial(serial_payoffDateInfo); this.redemptionAmount_ = serial_RedemptionNotionalTrigger.RedemptionAmount_.ValueStr; }
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.PayoffDateInfo serial_PayoffDateInfo = serial_Class as FpmlSerializedCSharp.PayoffDateInfo; FpmlSerializedCSharp.FixingDateInfo serial_fixingDateInfo = serial_PayoffDateInfo.FixingDateInfo_; string fixingDateInfotype = serial_fixingDateInfo.Type_.ValueStr; this.fixingDateInfoViewModel_ = FixingDateInfoViewModel.CreateFixingDateInfo(fixingDateInfotype); this.fixingDateInfoViewModel_.setFromSerial(serial_fixingDateInfo); //this.view_ = new PayoffDateInfoView(); this.view_.DataContext = this; }
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.NoAutoCallReturnTrigger serial_NoAutoCallReturnTrigger = serial_Class as FpmlSerializedCSharp.NoAutoCallReturnTrigger; FpmlSerializedCSharp.PayoffDateInfo serial_payoffDateInfo = serial_NoAutoCallReturnTrigger.PayoffDateInfo_; string payoffDateInfotype = serial_payoffDateInfo.Excel_type_.ValueStr; this.payoffDateInfoViewModel_ = PayoffDateInfoViewModel.CreatePayoffDateInfo(payoffDateInfotype); this.payoffDateInfoViewModel_.setFromSerial(serial_payoffDateInfo); FpmlSerializedCSharp.ReturnCalculation serial_returnCalculation = serial_NoAutoCallReturnTrigger.ReturnCalculation_; string returnCalculationtype = serial_returnCalculation.Excel_type_.ValueStr; this.returnCalculationViewModel_ = ReturnCalculationViewModel.CreateReturnCalculation(returnCalculationtype); this.returnCalculationViewModel_.setFromSerial(serial_returnCalculation); }
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.AutoTerminationTrigger serial_AutoTerminationTrigger = serial_Class as FpmlSerializedCSharp.AutoTerminationTrigger; FpmlSerializedCSharp.EventCalculationInfo serial_eventCalculationInfo = serial_AutoTerminationTrigger.EventCalculationInfo_; this.eventCalculationInfoViewModel_.setFromSerial(serial_eventCalculationInfo); FpmlSerializedCSharp.ReturnCalculationInfo serial_returnCalculationInfo = serial_AutoTerminationTrigger.ReturnCalculationInfo_; this.returnCalculationInfoViewModel_.setFromSerial(serial_returnCalculationInfo); FpmlSerializedCSharp.PayoffDateInfo serial_payoffDateInfo = serial_AutoTerminationTrigger.PayoffDateInfo_; this.payoffDateInfoViewModel_.setFromSerial(serial_payoffDateInfo); //this.view_ = new AutoTerminationTriggerView(); //this.view_.DataContext = this; }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.EventTrigger serial_EventTrigger = serial_Class as FpmlSerializedCSharp.EventTrigger; FpmlSerializedCSharp.SimpleRangeReturnTrigger serial_SimpleRangeReturnTrigger = serial_EventTrigger.SimpleRangeReturnTrigger_; FpmlSerializedCSharp.SimpleRangeEventCal serial_simpleRangeEventCal = serial_SimpleRangeReturnTrigger.SimpleRangeEventCal_; string simpleRangeEventCaltype = serial_simpleRangeEventCal.Excel_type_.ValueStr; this.simpleRangeEventCalViewModel_ = SimpleRangeEventCalViewModel.CreateSimpleRangeEventCal(simpleRangeEventCaltype); this.simpleRangeEventCalViewModel_.setFromSerial(serial_simpleRangeEventCal); this.autoCallFlag_ = serial_SimpleRangeReturnTrigger.AutoCallFlag_.ValueStr; this.expired_ = serial_SimpleRangeReturnTrigger.Expired_.ValueStr; FpmlSerializedCSharp.PayoffDateInfo serial_payoffDateInfo = serial_SimpleRangeReturnTrigger.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.EventTrigger serial_EventTrigger = serial_Class as FpmlSerializedCSharp.EventTrigger; FpmlSerializedCSharp.FixedRateTrigger serial_FixedRateTrigger = serial_EventTrigger.FixedRateTrigger_; this.dayCounter_ = serial_FixedRateTrigger.DayCounter_.ValueStr; this.calculationStartDate_ = StringConverter.xmlDateToDateTime(serial_FixedRateTrigger.CalculationStartDate_.ValueStr); this.calculationEndDate_ = StringConverter.xmlDateToDateTime(serial_FixedRateTrigger.CalculationEndDate_.ValueStr); this.fixedRate_ = serial_FixedRateTrigger.FixedRate_.ValueStr; FpmlSerializedCSharp.PayoffDateInfo serial_payoffDateInfo = serial_FixedRateTrigger.PayoffDateInfo_; string payoffDateInfotype = serial_payoffDateInfo.Excel_type_.ValueStr; this.payoffDateInfoViewModel_ = PayoffDateInfoViewModel.CreatePayoffDateInfo(payoffDateInfotype); this.payoffDateInfoViewModel_.setFromSerial(serial_payoffDateInfo); this.isExpired_ = serial_FixedRateTrigger.IsExpired_.ValueStr; }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.StandardOption serial_StandardOption = serial_Class as FpmlSerializedCSharp.StandardOption; FpmlSerializedCSharp.SingleBarrier serial_SingleBarrier = serial_StandardOption.SingleBarrier_; FpmlSerializedCSharp.PayoffDateInfo serial_payoffDateInfo = serial_SingleBarrier.PayoffDateInfo_; string payoffDateInfotype = serial_payoffDateInfo.Excel_type_.ValueStr; this.payoffDateInfoViewModel_ = PayoffDateInfoViewModel.CreatePayoffDateInfo(payoffDateInfotype); this.payoffDateInfoViewModel_.setFromSerial(serial_payoffDateInfo); this.participateRate_ = serial_SingleBarrier.ParticipateRate_.ValueStr; FpmlSerializedCSharp.BarrierInfo serial_barrierInfo = serial_SingleBarrier.BarrierInfo_; string barrierInfotype = serial_barrierInfo.Excel_type_.ValueStr; this.barrierInfoViewModel_ = BarrierInfoViewModel.CreateBarrierInfo(barrierInfotype); this.barrierInfoViewModel_.setFromSerial(serial_barrierInfo); this.rebate_ = serial_SingleBarrier.Rebate_.ValueStr; }
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); }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.EventTrigger serial_EventTrigger = serial_Class as FpmlSerializedCSharp.EventTrigger; FpmlSerializedCSharp.VanillaCouponTrigger serial_VanillaCouponTrigger = serial_EventTrigger.VanillaCouponTrigger_; this.gearing_ = serial_VanillaCouponTrigger.Gearing_.ValueStr; this.spread_ = serial_VanillaCouponTrigger.Spread_.ValueStr; FpmlSerializedCSharp.ReturnCalculation serial_returnCalculation = serial_VanillaCouponTrigger.ReturnCalculation_; string returnCalculationtype = serial_returnCalculation.Excel_type_.ValueStr; this.returnCalculationViewModel_ = ReturnCalculationViewModel.CreateReturnCalculation(returnCalculationtype); this.returnCalculationViewModel_.setFromSerial(serial_returnCalculation); FpmlSerializedCSharp.PayoffDateInfo serial_payoffDateInfo = serial_VanillaCouponTrigger.PayoffDateInfo_; string payoffDateInfotype = serial_payoffDateInfo.Excel_type_.ValueStr; this.payoffDateInfoViewModel_ = PayoffDateInfoViewModel.CreatePayoffDateInfo(payoffDateInfotype); this.payoffDateInfoViewModel_.setFromSerial(serial_payoffDateInfo); this.isExpired_ = serial_VanillaCouponTrigger.IsExpired_.ValueStr; }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.EventTrigger serial_EventTrigger = serial_Class as FpmlSerializedCSharp.EventTrigger; FpmlSerializedCSharp.VanillaRateTrigger serial_VanillaRateTrigger = serial_EventTrigger.VanillaRateTrigger_; this.dayCounter_ = serial_VanillaRateTrigger.DayCounter_.ValueStr; this.calculationStartDate_ = serial_VanillaRateTrigger.CalculationStartDate_.ValueStr; this.calculationEndDate_ = serial_VanillaRateTrigger.CalculationEndDate_.ValueStr; this.gearing_ = serial_VanillaRateTrigger.Gearing_.ValueStr; this.spread_ = serial_VanillaRateTrigger.Spread_.ValueStr; FpmlSerializedCSharp.ReferenceCalculationInfo serial_referenceCalculationInfo = serial_VanillaRateTrigger.ReferenceCalculationInfo_; this.referenceCalculationInfoViewModel_.setFromSerial(serial_referenceCalculationInfo); FpmlSerializedCSharp.PayoffDateInfo serial_payoffDateInfo = serial_VanillaRateTrigger.PayoffDateInfo_; this.payoffDateInfoViewModel_.setFromSerial(serial_payoffDateInfo); //this.view_ = new VanillaRateTriggerView(); this.view_.DataContext = this; }