Beispiel #1
0
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.ParaRoot serial_ParaRoot = serial_Class as FpmlSerializedCSharp.ParaRoot;

            FpmlSerializedCSharp.Pricing serial_pricing = serial_ParaRoot.Pricing_;
            string pricingtype = serial_pricing.Excel_type_.ValueStr;

            this.pricingViewModel_ = PricingViewModel.CreatePricing(pricingtype);
            this.pricingViewModel_.setFromSerial(serial_pricing);
        }
        protected override void loadParaResultFromXml(XmlNode node)
        {
            FpmlSerializedCSharp.ParaRoot serial_paraRoot = new FpmlSerializedCSharp.ParaRoot(node);
            FpmlSerializedCSharp.Pricing  serial_pricing  = serial_paraRoot.Pricing_;

            FpmlSerializedCSharp.Excel_parameter serial_pricingPara = serial_pricing.Excel_parameter_;
            //FpmlSerializedCSharp.PricingResult serial_pricingResult = serial_pricing.;

            PricingParameterViewModel vm1 = PricingParameterViewModel.CreatePricingParameter(serial_pricingPara);

            vm1.setFromSerial(serial_pricingPara);
            this.PricingParameterViewModel_ = vm1;

            //PricingResultViewModel vm2 = PricingResultViewModel.CreatePricingResult(serial_pricingResult);
            //vm2.setFromSerial(serial_pricingResult);
            //this.PricingResultViewModel_ = vm2;

            //this.view_ = new StandardInstBaseView();
        }
        protected override void loadParaResultFromXml(XmlNode node)
        {
            FpmlSerializedCSharp.ParaRoot serial_paraRoot = new FpmlSerializedCSharp.ParaRoot(node);
            FpmlSerializedCSharp.Pricing serial_pricing = serial_paraRoot.Pricing_;

            FpmlSerializedCSharp.Excel_parameter serial_pricingPara = serial_pricing.Excel_parameter_;
            //FpmlSerializedCSharp.PricingResult serial_pricingResult = serial_pricing.;

            PricingParameterViewModel vm1 = PricingParameterViewModel.CreatePricingParameter(serial_pricingPara);
            vm1.setFromSerial(serial_pricingPara);
            this.PricingParameterViewModel_ = vm1;

            //PricingResultViewModel vm2 = PricingResultViewModel.CreatePricingResult(serial_pricingResult);
            //vm2.setFromSerial(serial_pricingResult);
            //this.PricingResultViewModel_ = vm2;

            //this.view_ = new StandardInstBaseView();
        }