public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Root serial_Root = serial_Class as FpmlSerializedCSharp.Root;

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

            this.instrumentViewModel_ = InstrumentViewModel.CreateInstrument(instrumenttype);
            this.instrumentViewModel_.setFromSerial(serial_instrument);
        }
        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);
        }