public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_vanillaFloatingBond_subtype serial_Excel_vanillaFloatingBond_subtype = serial_Class as FpmlSerializedCSharp.Excel_vanillaFloatingBond_subtype; FpmlSerializedCSharp.Excel_vanillaFloatingBond_simple serial_Excel_vanillaFloatingBond_simple = serial_Excel_vanillaFloatingBond_subtype.Excel_vanillaFloatingBond_simple_; this.maturity_ = serial_Excel_vanillaFloatingBond_simple.Maturity_.ValueStr; this.maturityPeriod_ = serial_Excel_vanillaFloatingBond_simple.MaturityPeriod_.ValueStr; this.couponTenor_ = serial_Excel_vanillaFloatingBond_simple.CouponTenor_.ValueStr; this.couponTenorPeriod_ = serial_Excel_vanillaFloatingBond_simple.CouponTenorPeriod_.ValueStr; List <FpmlSerializedCSharp.Excel_vanillaFloatingBond_subSchedule> serial_excel_vanillaFloatingBond_subSchedule = serial_Excel_vanillaFloatingBond_simple.Excel_vanillaFloatingBond_subSchedule_; this.excel_vanillaFloatingBond_subScheduleViewModel_ = new ObservableCollection <Excel_vanillaFloatingBond_subScheduleViewModel>(); foreach (var item in serial_excel_vanillaFloatingBond_subSchedule) { string type = item.Excel_type_.ValueStr; Excel_vanillaFloatingBond_subScheduleViewModel viewModel = Excel_vanillaFloatingBond_subScheduleViewModel.CreateExcel_vanillaFloatingBond_subSchedule(type); viewModel.setFromSerial(item); this.excel_vanillaFloatingBond_subScheduleViewModel_.Add(viewModel); } this.gearing_ = serial_Excel_vanillaFloatingBond_simple.Gearing_.ValueStr; this.spread_ = serial_Excel_vanillaFloatingBond_simple.Spread_.ValueStr; this.settlementDays_ = serial_Excel_vanillaFloatingBond_simple.SettlementDays_.ValueStr; }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_interface serial_Excel_interface = serial_Class as FpmlSerializedCSharp.Excel_interface; FpmlSerializedCSharp.Excel_vanillaFloatingBond serial_Excel_vanillaFloatingBond = serial_Excel_interface.Excel_vanillaFloatingBond_; FpmlSerializedCSharp.Excel_issueInfo serial_excel_issueInfo = serial_Excel_vanillaFloatingBond.Excel_issueInfo_; string excel_issueInfotype = serial_excel_issueInfo.Excel_type_.ValueStr; this.excel_issueInfoViewModel_ = Excel_issueInfoViewModel.CreateExcel_issueInfo(excel_issueInfotype); this.excel_issueInfoViewModel_.setFromSerial(serial_excel_issueInfo); FpmlSerializedCSharp.Excel_underlyingCalcInfo serial_excel_underlyingCalcInfo = serial_Excel_vanillaFloatingBond.Excel_underlyingCalcInfo_; string excel_underlyingCalcInfotype = serial_excel_underlyingCalcInfo.Excel_type_.ValueStr; this.excel_underlyingCalcInfoViewModel_ = Excel_underlyingCalcInfoViewModel.CreateExcel_underlyingCalcInfo(excel_underlyingCalcInfotype); this.excel_underlyingCalcInfoViewModel_.setFromSerial(serial_excel_underlyingCalcInfo); FpmlSerializedCSharp.Excel_vanillaFloatingCouponScheduleList serial_excel_vanillaFloatingCouponScheduleList = serial_Excel_vanillaFloatingBond.Excel_vanillaFloatingCouponScheduleList_; string excel_vanillaFloatingCouponScheduleListtype = serial_excel_vanillaFloatingCouponScheduleList.Excel_type_.ValueStr; this.excel_vanillaFloatingCouponScheduleListViewModel_ = Excel_vanillaFloatingCouponScheduleListViewModel.CreateExcel_vanillaFloatingCouponScheduleList(excel_vanillaFloatingCouponScheduleListtype); this.excel_vanillaFloatingCouponScheduleListViewModel_.setFromSerial(serial_excel_vanillaFloatingCouponScheduleList); FpmlSerializedCSharp.Excel_vanillaFloatingBond_subtype serial_excel_vanillaFloatingBond_subtype = serial_Excel_vanillaFloatingBond.Excel_vanillaFloatingBond_subtype_; string excel_vanillaFloatingBond_subtypetype = serial_excel_vanillaFloatingBond_subtype.Excel_type_.ValueStr; this.excel_vanillaFloatingBond_subtypeViewModel_ = Excel_vanillaFloatingBond_subtypeViewModel.CreateExcel_vanillaFloatingBond_subtype(excel_vanillaFloatingBond_subtypetype); this.excel_vanillaFloatingBond_subtypeViewModel_.setFromSerial(serial_excel_vanillaFloatingBond_subtype); }