Example #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);
        }
Example #2
0
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Pricing serial_Pricing = serial_Class as FpmlSerializedCSharp.Pricing;

            this.evaluationTime_ = serial_Pricing.EvaluationTime_.ValueStr;

            FpmlSerializedCSharp.Excel_parameter serial_excel_parameter = serial_Pricing.Excel_parameter_;
            string excel_parametertype = serial_excel_parameter.Excel_type_.ValueStr;

            this.excel_parameterViewModel_ = Excel_parameterViewModel.CreateExcel_parameter(excel_parametertype);
            this.excel_parameterViewModel_.setFromSerial(serial_excel_parameter);
        }
        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();
        }
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.ProductInnerXml serial_ProductInnerXml = serial_Class as FpmlSerializedCSharp.ProductInnerXml;

            FpmlSerializedCSharp.Instrument serial_instrument = serial_ProductInnerXml.Instrument_;
            string instrumenttype = serial_instrument.Excel_type_.ValueStr;

            this.instrumentViewModel_ = InstrumentViewModel.CreateInstrument(instrumenttype);
            this.instrumentViewModel_.setFromSerial(serial_instrument);

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

            this.pricingViewModel_ = PricingViewModel.CreatePricing(pricingtype);
            this.pricingViewModel_.setFromSerial(serial_pricing);

            FpmlSerializedCSharp.HisoryData serial_hisoryData = serial_ProductInnerXml.HisoryData_;
            string hisoryDatatype = serial_hisoryData.Excel_type_.ValueStr;

            this.hisoryDataViewModel_ = HisoryDataViewModel.CreateHisoryData(hisoryDatatype);
            this.hisoryDataViewModel_.setFromSerial(serial_hisoryData);
        }