public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_swapInterface  serial_Excel_swapInterface  = serial_Class as FpmlSerializedCSharp.Excel_swapInterface;
            FpmlSerializedCSharp.Excel_structuredSwap serial_Excel_structuredSwap = serial_Excel_swapInterface.Excel_structuredSwap_;

            //FpmlSerializedCSharp.Excel_counterUnderlyingCalcInfo serial_excel_counterUnderlyingCalcInfo = serial_Excel_structuredSwap.Excel_counterUnderlyingCalcInfo_;
            //string excel_counterUnderlyingCalcInfotype = serial_excel_counterUnderlyingCalcInfo.Excel_type_.ValueStr;
            //this.excel_counterUnderlyingCalcInfoViewModel_ = Excel_counterUnderlyingCalcInfoViewModel.CreateExcel_counterUnderlyingCalcInfo(excel_counterUnderlyingCalcInfotype);
            //this.excel_counterUnderlyingCalcInfoViewModel_.setFromSerial(serial_excel_counterUnderlyingCalcInfo);

            FpmlSerializedCSharp.Excel_issueInfo serial_excel_issueInfo = serial_Excel_structuredSwap.Excel_issueInfo_;
            string excel_issueInfotype = serial_excel_issueInfo.Excel_type_.ValueStr;

            this.excel_issueInfoViewModel_ = Excel_issueInfoViewModel.CreateExcel_issueInfo(excel_issueInfotype);
            this.excel_issueInfoViewModel_.setFromSerial(serial_excel_issueInfo);

            List <FpmlSerializedCSharp.Excel_swapLeg> serial_excel_swapLeg = serial_Excel_structuredSwap.Excel_swapLeg_;

            this.excel_swapLegViewModel_ = new ObservableCollection <Excel_swapLegViewModel>();
            foreach (var item in serial_excel_swapLeg)
            {
                string type = item.Excel_type_.ValueStr;
                Excel_swapLegViewModel viewModel = Excel_swapLegViewModel.CreateExcel_swapLeg(type);
                viewModel.setFromSerial(item);
                this.excel_swapLegViewModel_.Add(viewModel);
            }
        }
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_swapInterface serial_Excel_interface = serial_Class as FpmlSerializedCSharp.Excel_swapInterface;
            FpmlSerializedCSharp.Excel_cds           serial_Excel_cds       = serial_Excel_interface.Excel_cds_;

            FpmlSerializedCSharp.Excel_swapLeg serial_excel_swapLeg = serial_Excel_cds.Excel_swapLeg_;
            string excel_swapLegtype = serial_excel_swapLeg.Excel_type_.ValueStr;

            this.excel_swapLegViewModel_ = Excel_swapLegViewModel.CreateExcel_swapLeg(excel_swapLegtype);
            this.excel_swapLegViewModel_.setFromSerial(serial_excel_swapLeg);

            FpmlSerializedCSharp.Excel_creditEventSwapLeg serial_excel_creditEventSwapLeg = serial_Excel_cds.Excel_creditEventSwapLeg_;
            //string excel_creditEventSwapLegtype = serial_excel_creditEventSwapLeg.Excel_type_.ValueStr;
            this.excel_creditEventSwapLegViewModel_ = new Excel_creditEventSwapLegViewModel();
            this.excel_creditEventSwapLegViewModel_.setFromSerial(serial_excel_creditEventSwapLeg);
        }
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_swapInterface serial_Excel_swapInterface = serial_Class as FpmlSerializedCSharp.Excel_swapInterface;
            FpmlSerializedCSharp.Excel_crs           serial_Excel_crs           = serial_Excel_swapInterface.Excel_crs_;

            List <FpmlSerializedCSharp.Excel_swapLeg> serial_excel_swapLeg = serial_Excel_crs.Excel_swapLeg_;

            this.excel_swapLegViewModel_ = new ObservableCollection <Excel_swapLegViewModel>();
            foreach (var item in serial_excel_swapLeg)
            {
                string type = item.Excel_type_.ValueStr;
                Excel_swapLegViewModel viewModel = Excel_swapLegViewModel.CreateExcel_swapLeg(type);
                viewModel.setFromSerial(item);
                this.excel_swapLegViewModel_.Add(viewModel);
            }
        }