public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Excel_couponSchedule serial_Excel_couponSchedule = serial_Class as FpmlSerializedCSharp.Excel_couponSchedule; FpmlSerializedCSharp.Excel_condi_structuredAccrualCouponSchedule serial_Excel_condi_structuredAccrualCouponSchedule = serial_Excel_couponSchedule.Excel_condi_structuredAccrualCouponSchedule_; this.eventDate_ = StringConverter.xmlDateToDateTime(serial_Excel_condi_structuredAccrualCouponSchedule.EventDate_.ValueStr); this.payoffDate_ = StringConverter.xmlDateToDateTime(serial_Excel_condi_structuredAccrualCouponSchedule.PayoffDate_.ValueStr); this.calculationStartDate_ = StringConverter.xmlDateToDateTime(serial_Excel_condi_structuredAccrualCouponSchedule.CalculationStartDate_.ValueStr); this.calculationEndDate_ = StringConverter.xmlDateToDateTime(serial_Excel_condi_structuredAccrualCouponSchedule.CalculationEndDate_.ValueStr); this.description_ = serial_Excel_condi_structuredAccrualCouponSchedule.Description_.ValueStr; this.vba_description_ = serial_Excel_condi_structuredAccrualCouponSchedule.Vba_description_.ValueStr; FpmlSerializedCSharp.Range1D serial_range1D = serial_Excel_condi_structuredAccrualCouponSchedule.Range1D_; string range1Dtype = serial_range1D.Excel_type_.ValueStr; this.range1DViewModel_ = Range1DViewModel.CreateRange1D(range1Dtype); this.range1DViewModel_.setFromSerial(serial_range1D); FpmlSerializedCSharp.Excel_returnCalcInfo serial_excel_returnCalcInfo = serial_Excel_condi_structuredAccrualCouponSchedule.Excel_returnCalcInfo_; string excel_returnCalcInfotype = serial_excel_returnCalcInfo.Excel_type_.ValueStr; this.excel_returnCalcInfoViewModel_ = Excel_returnCalcInfoViewModel.CreateExcel_returnCalcInfo(excel_returnCalcInfotype); this.excel_returnCalcInfoViewModel_.setFromSerial(serial_excel_returnCalcInfo); this.dayCounter_ = serial_Excel_condi_structuredAccrualCouponSchedule.DayCounter_.ValueStr; this.detailScheduleType_ = serial_Excel_condi_structuredAccrualCouponSchedule.DetailScheduleType_.ValueStr; }
public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.EventCalculation serial_EventCalculation = serial_Class as FpmlSerializedCSharp.EventCalculation; FpmlSerializedCSharp.SimpleRangeEventCal serial_SimpleRangeEventCal = serial_EventCalculation.SimpleRangeEventCal_; FpmlSerializedCSharp.Range1D serial_range1D = serial_SimpleRangeEventCal.Range1D_; string range1Dtype = serial_range1D.Excel_type_.ValueStr; this.range1DViewModel_ = Range1DViewModel.CreateRange1D(range1Dtype); this.range1DViewModel_.setFromSerial(serial_range1D); FpmlSerializedCSharp.ReferenceCalculationInfo serial_referenceCalculationInfo = serial_SimpleRangeEventCal.ReferenceCalculationInfo_; string referenceCalculationInfotype = serial_referenceCalculationInfo.Excel_type_.ValueStr; this.referenceCalculationInfoViewModel_ = ReferenceCalculationInfoViewModel.CreateReferenceCalculationInfo(referenceCalculationInfotype); this.referenceCalculationInfoViewModel_.setFromSerial(serial_referenceCalculationInfo); FpmlSerializedCSharp.DateInformation serial_dateInformation = serial_SimpleRangeEventCal.DateInformation_; string dateInformationtype = serial_dateInformation.Excel_type_.ValueStr; this.dateInformationViewModel_ = DateInformationViewModel.CreateDateInformation(dateInformationtype); this.dateInformationViewModel_.setFromSerial(serial_dateInformation); FpmlSerializedCSharp.JointSimpleCalculation serial_jointSimpleCalculation = serial_SimpleRangeEventCal.JointSimpleCalculation_; string jointSimpleCalculationtype = serial_jointSimpleCalculation.Excel_type_.ValueStr; this.jointSimpleCalculationViewModel_ = JointSimpleCalculationViewModel.CreateJointSimpleCalculation(jointSimpleCalculationtype); this.jointSimpleCalculationViewModel_.setFromSerial(serial_jointSimpleCalculation); }
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Range1D serial_Range1D = serial_Class as FpmlSerializedCSharp.Range1D; this.lowerBound_ = serial_Range1D.LowerBound_.ValueStr; this.upperBound_ = serial_Range1D.UpperBound_.ValueStr; this.lowerBoundEquality_ = serial_Range1D.LowerBoundEquality_.ValueStr; this.upperBoundEquality_ = serial_Range1D.UpperBoundEquality_.ValueStr; }
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.RangeCondition1D serial_RangeCondition1D = serial_Class as FpmlSerializedCSharp.RangeCondition1D; FpmlSerializedCSharp.Range1D serial_range1D = serial_RangeCondition1D.Range1D_; string range1Dtype = serial_range1D.Excel_type_.ValueStr; this.range1DViewModel_ = Range1DViewModel.CreateRange1D(range1Dtype); this.range1DViewModel_.setFromSerial(serial_range1D); this.constValue_ = serial_RangeCondition1D.ConstValue_.ValueStr; this.refName_ = serial_RangeCondition1D.RefName_.ValueStr; }
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.Range1D serial_Range1D = serial_Class as FpmlSerializedCSharp.Range1D; this.lowerBound_ = serial_Range1D.LowerBound_.ValueStr; this.upperBound_ = serial_Range1D.UpperBound_.ValueStr; this.lowerBoundEquality_ = serial_Range1D.LowerBoundEquality_.ValueStr; this.upperBoundEquality_ = serial_Range1D.UpperBoundEquality_.ValueStr; //this.view_ = new Range1DView(); this.view_.DataContext = this; }
public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class) { FpmlSerializedCSharp.RangeCondition1D serial_RangeCondition1D = serial_Class as FpmlSerializedCSharp.RangeCondition1D; FpmlSerializedCSharp.Range1D serial_range1D = serial_RangeCondition1D.Range1D_; //string range1Dtype = serial_range1D.Type_.ValueStr; //this.range1DViewModel_ = Range1DViewModel.CreateRange1D(range1Dtype); this.range1DViewModel_.setFromSerial(serial_range1D); this.constValue_ = serial_RangeCondition1D.ConstValue_.ValueStr; this.refName_ = serial_RangeCondition1D.RefName_.ValueStr; ////this.view_ = new RangeCondition1DView(); //this.view_.DataContext = this; }