Exemple #1
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.PricingResult    serial_PricingResult    = serial_Class as FpmlSerializedCSharp.PricingResult;
            FpmlSerializedCSharp.StepDownKIResult serial_StepDownKIResult = serial_PricingResult.StepDownKIResult_;

            this.Type_ = serial_PricingResult.Type_.ValueStr;

            FpmlSerializedCSharp.CommonResult serial_commonResult = serial_PricingResult.CommonResult_;
            this.CommonResultViewModel_ = new CommonResultViewModel();
            this.CommonResultViewModel_.setFromSerial(serial_commonResult);

            FpmlSerializedCSharp.UnderylingInfoResult serial_underylingInfoResult = serial_StepDownKIResult.UnderylingInfoResult_;
            this.underylingInfoResultViewModel_ = new UnderylingInfoResultViewModel();
            this.underylingInfoResultViewModel_.setFromSerial(serial_underylingInfoResult);

            //FpmlSerializedCSharp.CashFlowInfoResult serial_cashFlowInfoResult = serial_StepDownKIResult.CashFlowInfoResult_;
            //string cashFlowInfoResulttype = serial_cashFlowInfoResult.Type_.ValueStr;
            //this.cashFlowInfoResultViewModel_ = CashFlowInfoResultViewModel.CreateCashFlowInfoResult(cashFlowInfoResulttype);
            //this.cashFlowInfoResultViewModel_.setFromSerial(serial_cashFlowInfoResult);

            this.theta_            = serial_StepDownKIResult.Theta_.ValueStr;
            this.view_             = new StepDownKIResultView();
            this.view_.DataContext = this;
        }
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.PricingResult serial_PricingResult = serial_Class as FpmlSerializedCSharp.PricingResult;
            FpmlSerializedCSharp.StepDownKIResult serial_StepDownKIResult = serial_PricingResult.StepDownKIResult_;

            this.Type_ = serial_PricingResult.Type_.ValueStr;

            FpmlSerializedCSharp.CommonResult serial_commonResult = serial_PricingResult.CommonResult_;
            this.CommonResultViewModel_ = new CommonResultViewModel();
            this.CommonResultViewModel_.setFromSerial(serial_commonResult);

            FpmlSerializedCSharp.UnderylingInfoResult serial_underylingInfoResult = serial_StepDownKIResult.UnderylingInfoResult_;
            this.underylingInfoResultViewModel_ = new UnderylingInfoResultViewModel();
            this.underylingInfoResultViewModel_.setFromSerial(serial_underylingInfoResult);
            
            //FpmlSerializedCSharp.CashFlowInfoResult serial_cashFlowInfoResult = serial_StepDownKIResult.CashFlowInfoResult_;
            //string cashFlowInfoResulttype = serial_cashFlowInfoResult.Type_.ValueStr;
            //this.cashFlowInfoResultViewModel_ = CashFlowInfoResultViewModel.CreateCashFlowInfoResult(cashFlowInfoResulttype);
            //this.cashFlowInfoResultViewModel_.setFromSerial(serial_cashFlowInfoResult);
            
            this.theta_ = serial_StepDownKIResult.Theta_.ValueStr;
            this.view_ = new StepDownKIResultView();
            this.view_.DataContext = this;
        }