Exemplo n.º 1
0
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Instrument serial_Instrument = serial_Class as FpmlSerializedCSharp.Instrument;

            FpmlSerializedCSharp.Header serial_header = serial_Instrument.Header_;
            string headertype = serial_header.Excel_type_.ValueStr;

            this.headerViewModel_ = HeaderViewModel.CreateHeader(headertype);
            this.headerViewModel_.setFromSerial(serial_header);

            FpmlSerializedCSharp.InstPositionInfo serial_instPositionInfo = serial_Instrument.InstPositionInfo_;
            string instPositionInfotype = serial_instPositionInfo.Excel_type_.ValueStr;

            this.instPositionInfoViewModel_ = InstPositionInfoViewModel.CreateInstPositionInfo(instPositionInfotype);
            this.instPositionInfoViewModel_.setFromSerial(serial_instPositionInfo);

            FpmlSerializedCSharp.Excel_interface serial_excel_interface = serial_Instrument.Excel_interface_;
            string excel_interfacetype = serial_excel_interface.Excel_type_.ValueStr;

            this.excel_interfaceViewModel_ = Excel_interfaceViewModel.CreateExcel_interface(excel_interfacetype);
            this.excel_interfaceViewModel_.setFromSerial(serial_excel_interface);

            FpmlSerializedCSharp.InstrumentInfo serial_instrumentInfo = serial_Instrument.InstrumentInfo_;
            string instrumentInfotype = serial_instrumentInfo.Excel_type_.ValueStr;

            this.instrumentInfoViewModel_ = InstrumentInfoViewModel.CreateInstrumentInfo(instrumentInfotype);
            this.instrumentInfoViewModel_.setFromSerial(serial_instrumentInfo);
        }
Exemplo n.º 2
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_swapLeg serial_Excel_swapLeg = serial_Class as FpmlSerializedCSharp.Excel_swapLeg;
            FpmlSerializedCSharp.Excel_structuredRateSwapLeg serial_Excel_structuredRateSwapLeg = serial_Excel_swapLeg.Excel_structuredRateSwapLeg_;

            FpmlSerializedCSharp.Excel_swapLegInfo serial_excel_swapLegInfo = serial_Excel_structuredRateSwapLeg.Excel_swapLegInfo_;
            string excel_swapLegInfotype = serial_excel_swapLegInfo.Excel_type_.ValueStr;

            this.excel_swapLegInfoViewModel_ = Excel_swapLegInfoViewModel.CreateExcel_swapLegInfo(excel_swapLegInfotype);
            this.excel_swapLegInfoViewModel_.setFromSerial(serial_excel_swapLegInfo);

            FpmlSerializedCSharp.Excel_interface serial_excel_interface = serial_Excel_structuredRateSwapLeg.Excel_interface_;
            string excel_interfacetype = serial_excel_interface.Excel_type_.ValueStr;

            this.excel_interfaceViewModel_ = Excel_interfaceViewModel.CreateExcel_interface(excel_interfacetype);
            this.excel_interfaceViewModel_.setFromSerial(serial_excel_interface);
        }
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Instrument serial_Instrument = serial_Class as FpmlSerializedCSharp.Instrument;

            this.code_ = serial_Instrument.Code_.ValueStr;

            FpmlSerializedCSharp.Excel_interface serial_excel_interface = serial_Instrument.Excel_interface_;
            string excel_interfacetype = serial_excel_interface.Excel_type_.ValueStr;

            this.excel_interfaceViewModel_ = Excel_interfaceViewModel.CreateExcel_interface(excel_interfacetype);
            this.excel_interfaceViewModel_.setFromSerial(serial_excel_interface);

            FpmlSerializedCSharp.Excel_swapInterface serial_excel_swapInterface = serial_Instrument.Excel_swapInterface_;
            string excel_swapInterfacetype = serial_excel_swapInterface.Excel_type_.ValueStr;

            this.excel_swapInterfaceViewModel_ = Excel_swapInterfaceViewModel.CreateExcel_swapInterface(excel_swapInterfacetype);
            this.excel_swapInterfaceViewModel_.setFromSerial(serial_excel_swapInterface);
        }