public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.UnderlyingInfo_para serial_UnderlyingInfo_para = serial_Class as FpmlSerializedCSharp.UnderlyingInfo_para;

            List <FpmlSerializedCSharp.Underlying_para> serial_underlying_para = serial_UnderlyingInfo_para.Underlying_para_;

            this.underlying_paraViewModel_ = new ObservableCollection <Underlying_paraViewModel>();
            foreach (var item in serial_underlying_para)
            {
                string type = item.Excel_type_.ValueStr;
                Underlying_paraViewModel viewModel = Underlying_paraViewModel.CreateUnderlying_para(type);
                viewModel.setFromSerial(item);
                this.underlying_paraViewModel_.Add(viewModel);
            }

            FpmlSerializedCSharp.CorrelationInfo_para serial_correlationInfo_para = serial_UnderlyingInfo_para.CorrelationInfo_para_;
            string correlationInfo_paratype = serial_correlationInfo_para.Excel_type_.ValueStr;

            this.correlationInfo_paraViewModel_ = CorrelationInfo_paraViewModel.CreateCorrelationInfo_para(correlationInfo_paratype);
            this.correlationInfo_paraViewModel_.setFromSerial(serial_correlationInfo_para);
        }
Beispiel #2
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.PricingParameter serial_PricingParameter = serial_Class as FpmlSerializedCSharp.PricingParameter;
            FpmlSerializedCSharp.StepDownKI_para  serial_StepDownKI_para  = serial_PricingParameter.StepDownKI_para_;

            FpmlSerializedCSharp.CalculationAmount serial_calculationAmount = serial_StepDownKI_para.CalculationAmount_;
            string calculationAmounttype = serial_calculationAmount.Excel_type_.ValueStr;

            this.calculationAmountViewModel_ = CalculationAmountViewModel.CreateCalculationAmount(calculationAmounttype);
            this.calculationAmountViewModel_.setFromSerial(serial_calculationAmount);

            FpmlSerializedCSharp.UnderlyingInfo_para serial_underlyingInfo_para = serial_StepDownKI_para.UnderlyingInfo_para_;
            string underlyingInfo_paratype = serial_underlyingInfo_para.Excel_type_.ValueStr;

            this.underlyingInfo_paraViewModel_ = UnderlyingInfo_paraViewModel.CreateUnderlyingInfo_para(underlyingInfo_paratype);
            this.underlyingInfo_paraViewModel_.setFromSerial(serial_underlyingInfo_para);

            FpmlSerializedCSharp.DiscountCurve_para serial_discountCurve_para = serial_StepDownKI_para.DiscountCurve_para_;
            string discountCurve_paratype = serial_discountCurve_para.Excel_type_.ValueStr;

            this.discountCurve_paraViewModel_ = DiscountCurve_paraViewModel.CreateDiscountCurve_para(discountCurve_paratype);
            this.discountCurve_paraViewModel_.setFromSerial(serial_discountCurve_para);
        }