Exemplo n.º 1
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);
        }
Exemplo n.º 2
0
 public void selectUnderlyingInfo_paraInfo(string typeStr)
 {
     this.underlyingInfo_paraViewModel_ = UnderlyingInfo_paraViewModel.CreateUnderlyingInfo_para(typeStr);
     this.view_.DataContext             = this;
 }