public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_couponScheduleList serial_Excel_couponScheduleList = serial_Class as FpmlSerializedCSharp.Excel_couponScheduleList; List <FpmlSerializedCSharp.Excel_couponSchedule> serial_excel_couponSchedule = serial_Excel_couponScheduleList.Excel_couponSchedule_; this.excel_couponScheduleViewModel_ = new ObservableCollection <Excel_couponScheduleViewModel>(); foreach (var item in serial_excel_couponSchedule) { string type = item.Excel_type_.ValueStr; Excel_couponScheduleViewModel viewModel = Excel_couponScheduleViewModel.CreateExcel_couponSchedule(type); viewModel.setFromSerial(item); this.excel_couponScheduleViewModel_.Add(viewModel); } }
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_fixedCouponScheduleList serial_Excel_fixedCouponScheduleList = serial_Class as FpmlSerializedCSharp.Excel_fixedCouponScheduleList; //this.scheduleInitialDate_ = serial_Excel_fixedCouponScheduleList.ScheduleInitialDate_.ValueStr; this.fixedRate_ = serial_Excel_fixedCouponScheduleList.FixedRate_.ValueStr; this.dayCounter_ = serial_Excel_fixedCouponScheduleList.DayCounter_.ValueStr; //this.maturityDate_ = serial_Excel_fixedCouponScheduleList.MaturityDate_.ValueStr; List <FpmlSerializedCSharp.Excel_couponSchedule> serial_excel_couponSchedule = serial_Excel_fixedCouponScheduleList.Excel_couponSchedule_; this.excel_fixedCouponScheduleViewModel_ = new ObservableCollection <Excel_fixedCouponScheduleViewModel>(); foreach (var item in serial_excel_couponSchedule) { string type = item.Excel_type_.ValueStr; Excel_couponScheduleViewModel viewModel = Excel_couponScheduleViewModel.CreateExcel_couponSchedule(type); viewModel.setFromSerial(item); this.excel_fixedCouponScheduleViewModel_.Add((Excel_fixedCouponScheduleViewModel)viewModel); } }