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) { 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 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.ReferenceCalculation serial_ReferenceCalculation = serial_Class as FpmlSerializedCSharp.ReferenceCalculation; FpmlSerializedCSharp.IdentityReferenceCal serial_IdentityReferenceCal = serial_ReferenceCalculation.IdentityReferenceCal_; this.krCode_ = serial_IdentityReferenceCal.KrCode_.ValueStr; FpmlSerializedCSharp.FixingDateInfo serial_fixingDateInfo = serial_IdentityReferenceCal.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.ReferenceCalculation serial_ReferenceCalculation = serial_Class as FpmlSerializedCSharp.ReferenceCalculation; FpmlSerializedCSharp.MinimumReferenceCal serial_MinimumReferenceCal = serial_ReferenceCalculation.MinimumReferenceCal_; this.nth_ = serial_MinimumReferenceCal.Nth_.ValueStr; this.selectedUnderNameViewModel_ = new ObservableCollection <SelectedUnderNameViewModel>(); foreach (var item in serial_MinimumReferenceCal.SelectedUnderName_) { this.value_.Add(item.ValueStr); } FpmlSerializedCSharp.FixingDateInfo serial_fixingDateInfo = serial_MinimumReferenceCal.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.ReferenceCalculation serial_ReferenceCalculation = serial_Class as FpmlSerializedCSharp.ReferenceCalculation; FpmlSerializedCSharp.MinimumReferenceCal serial_MinimumReferenceCal = serial_ReferenceCalculation.MinimumReferenceCal_; this.nth_ = serial_MinimumReferenceCal.Nth_.ValueStr; this.selectedUnderNameViewModel_ = new ObservableCollection<SelectedUnderNameViewModel>(); foreach (var item in serial_MinimumReferenceCal.SelectedUnderName_) { this.value_.Add(item.ValueStr); } FpmlSerializedCSharp.FixingDateInfo serial_fixingDateInfo = serial_MinimumReferenceCal.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.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); } }