public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_yieldCurve serial_Excel_yieldCurve = serial_Class as FpmlSerializedCSharp.Excel_yieldCurve;

            this.currency_ = serial_Excel_yieldCurve.Currency_.ValueStr;

            this.code_ = serial_Excel_yieldCurve.Code_.ValueStr;

            this.name_ = serial_Excel_yieldCurve.Name_.ValueStr;

            this.description_ = serial_Excel_yieldCurve.Description_.ValueStr;

            FpmlSerializedCSharp.Excel_interpolation serial_excel_interpolation = serial_Excel_yieldCurve.Excel_interpolation_;
            string excel_interpolationtype = serial_excel_interpolation.Excel_type_.ValueStr;

            this.excel_interpolationViewModel_ = Excel_interpolationViewModel.CreateExcel_interpolation(excel_interpolationtype);
            this.excel_interpolationViewModel_.setFromSerial(serial_excel_interpolation);

            List <FpmlSerializedCSharp.Excel_rateData> serial_excel_rateData = serial_Excel_yieldCurve.Excel_rateData_;

            this.excel_rateDataViewModel_ = new ObservableCollection <Excel_rateDataViewModel>();
            foreach (var item in serial_excel_rateData)
            {
                string type = item.Excel_type_.ValueStr;
                Excel_rateDataViewModel viewModel = Excel_rateDataViewModel.CreateExcel_rateData(type);
                viewModel.setFromSerial(item);
                this.excel_rateDataViewModel_.Add(viewModel);
            }
        }
        //public Control view()
        //{
        //    Control v = new Excel_defaultCurveView();
        //    v.DataContext = this;
        //    return v;
        //}

        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_defaultCurve serial_Excel_defaultCurve = serial_Class as FpmlSerializedCSharp.Excel_defaultCurve;

            this.code_ = serial_Excel_defaultCurve.Code_.ValueStr;

            this.name_ = serial_Excel_defaultCurve.Name_.ValueStr;

            this.recovery_ = serial_Excel_defaultCurve.Recovery_.ValueStr;

            this.description_ = serial_Excel_defaultCurve.Description_.ValueStr;

            FpmlSerializedCSharp.Excel_interpolation serial_excel_interpolation = serial_Excel_defaultCurve.Excel_interpolation_;
            this.excel_interpolationViewModel_ = new Excel_interpolationViewModel();
            this.excel_interpolationViewModel_.setFromSerial(serial_excel_interpolation);

            List <FpmlSerializedCSharp.Excel_rateData> serial_excel_rateData = serial_Excel_defaultCurve.Excel_rateData_;

            this.excel_rateDataViewModel_ = new ObservableCollection <Excel_rateDataViewModel>();
            foreach (var item in serial_excel_rateData)
            {
                //string type = item.Excel_type_.ValueStr;
                Excel_rateDataViewModel viewModel = new Excel_rateDataViewModel();
                viewModel.setFromSerial(item);
                this.excel_rateDataViewModel_.Add(viewModel);
            }
        }
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_interpolation serial_Excel_interpolation = serial_Class as FpmlSerializedCSharp.Excel_interpolation;

            this.interpolation_ = serial_Excel_interpolation.Interpolation_.ValueStr;

            this.daycounter_ = serial_Excel_interpolation.Daycounter_.ValueStr;

            this.calendar_ = serial_Excel_interpolation.Calendar_.ValueStr;

            this.businessDayConvention_ = serial_Excel_interpolation.BusinessDayConvention_.ValueStr;
        }