Beispiel #1
0
        public void excerciseDateUpdate(object sender, PropertyChangedEventArgs e)
        {
            Excel_issueInfoViewModel e_ivm = sender as Excel_issueInfoViewModel;

            if (e.PropertyName == "MaturityDate_")
            {
                this.ExerciseDate_ = e_ivm.MaturityDate_;
                this.PayoffDate_   = e_ivm.MaturityDate_;
            }
        }
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_interface serial_Excel_interface = serial_Class as FpmlSerializedCSharp.Excel_interface;
            FpmlSerializedCSharp.Excel_fxForward serial_Excel_fxForward = serial_Excel_interface.Excel_fxForward_;

            FpmlSerializedCSharp.Excel_issueInfo serial_excel_issueInfo = serial_Excel_fxForward.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);

            FpmlSerializedCSharp.Fx_exchangeLeg serial_fx_exchangeLeg = serial_Excel_fxForward.Fx_exchangeLeg_;
            this.fx_exchangeLegViewModel_.setFromSerial(serial_fx_exchangeLeg);
        }
Beispiel #3
0
        public void issueInformationObserver(object sender, PropertyChangedEventArgs e)
        {
            Excel_issueInfoViewModel e_ivm = sender as Excel_issueInfoViewModel;

            if (e.PropertyName == "EffectiveDate_")
            {
                this.Trade_date_ = e_ivm.EffectiveDate_;
            }

            if (e.PropertyName == "MaturityDate_")
            {
                this.Maturity_date_ = e_ivm.MaturityDate_;
            }
        }
Beispiel #4
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_interface      serial_Excel_interface      = serial_Class as FpmlSerializedCSharp.Excel_interface;
            FpmlSerializedCSharp.Excel_structuredBond serial_Excel_structuredBond = serial_Excel_interface.Excel_structuredBond_;

            FpmlSerializedCSharp.Excel_issueInfo serial_excel_issueInfo = serial_Excel_structuredBond.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);

            FpmlSerializedCSharp.Excel_underlyingCalcInfo serial_excel_underlyingCalcInfo = serial_Excel_structuredBond.Excel_underlyingCalcInfo_;
            //이미 있음 Linked 된게
            //this.excel_underlyingCalcInfoViewModel_ = new Excel_underlyingCalcInfoViewModel();
            this.excel_underlyingCalcInfoViewModel_.setFromSerial(serial_excel_underlyingCalcInfo);

            FpmlSerializedCSharp.Excel_couponScheduleList serial_excel_couponScheduleList = serial_Excel_structuredBond.Excel_couponScheduleList_;
            this.excel_couponScheduleListViewModel_ = new Excel_couponScheduleListViewModel();
            this.excel_couponScheduleListViewModel_.setFromSerial(serial_excel_couponScheduleList);
        }
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_interface serial_Excel_interface = serial_Class as FpmlSerializedCSharp.Excel_interface;
            FpmlSerializedCSharp.Excel_fixedBond serial_Excel_fixedBond = serial_Excel_interface.Excel_fixedBond_;

            FpmlSerializedCSharp.Excel_issueInfo serial_excel_issueInfo = serial_Excel_fixedBond.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);

            FpmlSerializedCSharp.Excel_fixedCouponScheduleList serial_excel_fixedCouponScheduleList = serial_Excel_fixedBond.Excel_fixedCouponScheduleList_;
            this.excel_fixedCouponScheduleListViewModel_ = new Excel_fixedCouponScheduleListViewModel();
            this.excel_fixedCouponScheduleListViewModel_.setFromSerial(serial_excel_fixedCouponScheduleList);

            FpmlSerializedCSharp.Excel_fixedBond_subtype serial_excel_fixedBond_subtype = serial_Excel_fixedBond.Excel_fixedBond_subtype_;
            string excel_fixedBond_subtypetype = serial_excel_fixedBond_subtype.Excel_type_.ValueStr;

            this.excel_fixedBond_subtypeViewModel_ = Excel_fixedBond_subtypeViewModel.CreateExcel_fixedBond_subtype(excel_fixedBond_subtypetype);
            this.excel_fixedBond_subtypeViewModel_.setFromSerial(serial_excel_fixedBond_subtype);
        }
Beispiel #6
0
        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_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);
            }
        }
Beispiel #7
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_interface        serial_Excel_interface        = serial_Class as FpmlSerializedCSharp.Excel_interface;
            FpmlSerializedCSharp.Excel_stepDownKICustom serial_Excel_stepDownKICustom = serial_Excel_interface.Excel_stepDownKICustom_;

            FpmlSerializedCSharp.Excel_issueInfo serial_excel_issueInfo = serial_Excel_stepDownKICustom.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);

            FpmlSerializedCSharp.Excel_underlyingCalcInfo serial_excel_underlyingCalcInfo = serial_Excel_stepDownKICustom.Excel_underlyingCalcInfo_;
            string excel_underlyingCalcInfotype = serial_excel_underlyingCalcInfo.Excel_type_.ValueStr;

            this.excel_underlyingCalcInfoViewModel_ = Excel_underlyingCalcInfoViewModel.CreateExcel_underlyingCalcInfo(excel_underlyingCalcInfotype);
            this.excel_underlyingCalcInfoViewModel_.setFromSerial(serial_excel_underlyingCalcInfo);

            FpmlSerializedCSharp.Excel_hifive_subtype serial_excel_hifive_subtype = serial_Excel_stepDownKICustom.Excel_hifive_subtype_;
            string excel_hifive_subtypetype = serial_excel_hifive_subtype.Excel_type_.ValueStr;

            this.excel_hifive_subtypeViewModel_ = Excel_hifive_subtypeViewModel.CreateExcel_hifive_subtype(excel_hifive_subtypetype);
            this.excel_hifive_subtypeViewModel_.setFromSerial(serial_excel_hifive_subtype);
        }
 public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.Excel_interface serial_Excel_interface = serial_Class as FpmlSerializedCSharp.Excel_interface;
     FpmlSerializedCSharp.Excel_compositeOption serial_Excel_compositeOption = serial_Excel_interface.Excel_compositeOption_;
 
     FpmlSerializedCSharp.Excel_issueInfo serial_excel_issueInfo = serial_Excel_compositeOption.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);
     
     FpmlSerializedCSharp.Excel_underlyingCalcInfo serial_excel_underlyingCalcInfo = serial_Excel_compositeOption.Excel_underlyingCalcInfo_;
     string excel_underlyingCalcInfotype = serial_excel_underlyingCalcInfo.Excel_type_.ValueStr;
     this.excel_underlyingCalcInfoViewModel_ = Excel_underlyingCalcInfoViewModel.CreateExcel_underlyingCalcInfo(excel_underlyingCalcInfotype);
     this.excel_underlyingCalcInfoViewModel_.setFromSerial(serial_excel_underlyingCalcInfo);
     
     this.exerciseDate_ = StringConverter.xmlDateToDateTime(serial_Excel_compositeOption.ExerciseDate_.ValueStr);
     
     this.payoffDate_ = StringConverter.xmlDateToDateTime(serial_Excel_compositeOption.PayoffDate_.ValueStr);
     
     this.notionalMaturityPayment_ = serial_Excel_compositeOption.NotionalMaturityPayment_.ValueStr;
     
     List<FpmlSerializedCSharp.Excel_compositeOption_subtype> serial_excel_compositeOption_subtype = serial_Excel_compositeOption.Excel_compositeOption_subtype_;
     this.excel_compositeOption_subtypeViewModel_ = new ObservableCollection<Excel_compositeOption_subtypeViewModel>();
     foreach (var item in serial_excel_compositeOption_subtype)
     {
         string type = item.Excel_type_.ValueStr;
         Excel_compositeOption_subtypeViewModel viewModel = Excel_compositeOption_subtypeViewModel.CreateExcel_compositeOption_subtype(type);
         viewModel.setFromSerial(item);
         this.excel_compositeOption_subtypeViewModel_.Add(viewModel);
     }
     
 }
 public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.Excel_interface serial_Excel_interface = serial_Class as FpmlSerializedCSharp.Excel_interface;
     FpmlSerializedCSharp.Excel_vanillaFloatingBond serial_Excel_vanillaFloatingBond = serial_Excel_interface.Excel_vanillaFloatingBond_;
 
     FpmlSerializedCSharp.Excel_issueInfo serial_excel_issueInfo = serial_Excel_vanillaFloatingBond.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);
     
     FpmlSerializedCSharp.Excel_underlyingCalcInfo serial_excel_underlyingCalcInfo = serial_Excel_vanillaFloatingBond.Excel_underlyingCalcInfo_;
     string excel_underlyingCalcInfotype = serial_excel_underlyingCalcInfo.Excel_type_.ValueStr;
     this.excel_underlyingCalcInfoViewModel_ = Excel_underlyingCalcInfoViewModel.CreateExcel_underlyingCalcInfo(excel_underlyingCalcInfotype);
     this.excel_underlyingCalcInfoViewModel_.setFromSerial(serial_excel_underlyingCalcInfo);
     
     FpmlSerializedCSharp.Excel_vanillaFloatingCouponScheduleList serial_excel_vanillaFloatingCouponScheduleList = serial_Excel_vanillaFloatingBond.Excel_vanillaFloatingCouponScheduleList_;
     string excel_vanillaFloatingCouponScheduleListtype = serial_excel_vanillaFloatingCouponScheduleList.Excel_type_.ValueStr;
     this.excel_vanillaFloatingCouponScheduleListViewModel_ = Excel_vanillaFloatingCouponScheduleListViewModel.CreateExcel_vanillaFloatingCouponScheduleList(excel_vanillaFloatingCouponScheduleListtype);
     this.excel_vanillaFloatingCouponScheduleListViewModel_.setFromSerial(serial_excel_vanillaFloatingCouponScheduleList);
     
     FpmlSerializedCSharp.Excel_vanillaFloatingBond_subtype serial_excel_vanillaFloatingBond_subtype = serial_Excel_vanillaFloatingBond.Excel_vanillaFloatingBond_subtype_;
     string excel_vanillaFloatingBond_subtypetype = serial_excel_vanillaFloatingBond_subtype.Excel_type_.ValueStr;
     this.excel_vanillaFloatingBond_subtypeViewModel_ = Excel_vanillaFloatingBond_subtypeViewModel.CreateExcel_vanillaFloatingBond_subtype(excel_vanillaFloatingBond_subtypetype);
     this.excel_vanillaFloatingBond_subtypeViewModel_.setFromSerial(serial_excel_vanillaFloatingBond_subtype);
     
 }
 public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.Excel_interface serial_Excel_interface = serial_Class as FpmlSerializedCSharp.Excel_interface;
     FpmlSerializedCSharp.Excel_stepDownKICustom serial_Excel_stepDownKICustom = serial_Excel_interface.Excel_stepDownKICustom_;
 
     FpmlSerializedCSharp.Excel_issueInfo serial_excel_issueInfo = serial_Excel_stepDownKICustom.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);
     
     FpmlSerializedCSharp.Excel_underlyingCalcInfo serial_excel_underlyingCalcInfo = serial_Excel_stepDownKICustom.Excel_underlyingCalcInfo_;
     string excel_underlyingCalcInfotype = serial_excel_underlyingCalcInfo.Excel_type_.ValueStr;
     this.excel_underlyingCalcInfoViewModel_ = Excel_underlyingCalcInfoViewModel.CreateExcel_underlyingCalcInfo(excel_underlyingCalcInfotype);
     this.excel_underlyingCalcInfoViewModel_.setFromSerial(serial_excel_underlyingCalcInfo);
     
     FpmlSerializedCSharp.Excel_hifive_subtype serial_excel_hifive_subtype = serial_Excel_stepDownKICustom.Excel_hifive_subtype_;
     string excel_hifive_subtypetype = serial_excel_hifive_subtype.Excel_type_.ValueStr;
     this.excel_hifive_subtypeViewModel_ = Excel_hifive_subtypeViewModel.CreateExcel_hifive_subtype(excel_hifive_subtypetype);
     this.excel_hifive_subtypeViewModel_.setFromSerial(serial_excel_hifive_subtype);
     
 }
 public  void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.Excel_creditEventInfo serial_Excel_creditEventInfo = serial_Class as FpmlSerializedCSharp.Excel_creditEventInfo;
 
     FpmlSerializedCSharp.Excel_issueInfo serial_excel_issueInfo = serial_Excel_creditEventInfo.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);
     
     FpmlSerializedCSharp.Excel_referenceInformationList serial_excel_referenceInformationList = serial_Excel_creditEventInfo.Excel_referenceInformationList_;
     string excel_referenceInformationListtype = serial_excel_referenceInformationList.Excel_type_.ValueStr;
     this.excel_referenceInformationListViewModel_ = Excel_referenceInformationListViewModel.CreateExcel_referenceInformationList(excel_referenceInformationListtype);
     this.excel_referenceInformationListViewModel_.setFromSerial(serial_excel_referenceInformationList);
     
     FpmlSerializedCSharp.Excel_jointProbabilityTrait serial_excel_jointProbabilityTrait = serial_Excel_creditEventInfo.Excel_jointProbabilityTrait_;
     string excel_jointProbabilityTraittype = serial_excel_jointProbabilityTrait.Excel_type_.ValueStr;
     this.excel_jointProbabilityTraitViewModel_ = Excel_jointProbabilityTraitViewModel.CreateExcel_jointProbabilityTrait(excel_jointProbabilityTraittype);
     this.excel_jointProbabilityTraitViewModel_.setFromSerial(serial_excel_jointProbabilityTrait);
     
     FpmlSerializedCSharp.Excel_protectionTerms serial_excel_protectionTerms = serial_Excel_creditEventInfo.Excel_protectionTerms_;
     string excel_protectionTermstype = serial_excel_protectionTerms.Excel_type_.ValueStr;
     this.excel_protectionTermsViewModel_ = Excel_protectionTermsViewModel.CreateExcel_protectionTerms(excel_protectionTermstype);
     this.excel_protectionTermsViewModel_.setFromSerial(serial_excel_protectionTerms);
     
 }
 public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.Excel_interface serial_Excel_interface = serial_Class as FpmlSerializedCSharp.Excel_interface;
     FpmlSerializedCSharp.Excel_fxSwap serial_Excel_fxSwap = serial_Excel_interface.Excel_fxSwap_;
 
     FpmlSerializedCSharp.Excel_issueInfo serial_excel_issueInfo = serial_Excel_fxSwap.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.Fx_exchangeLeg> serial_fx_exchangeLeg = serial_Excel_fxSwap.Fx_exchangeLeg_;
     this.fx_exchangeLegViewModel_ = new ObservableCollection<Fx_exchangeLegViewModel>();
     foreach (var item in serial_fx_exchangeLeg)
     {
         string type = item.Excel_type_.ValueStr;
         Fx_exchangeLegViewModel viewModel = Fx_exchangeLegViewModel.CreateFx_exchangeLeg(type);
         viewModel.setFromSerial(item);
         this.fx_exchangeLegViewModel_.Add(viewModel);
     }
     
 }
 public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.Excel_interface serial_Excel_interface = serial_Class as FpmlSerializedCSharp.Excel_interface;
     FpmlSerializedCSharp.Excel_hifive serial_Excel_hifive = serial_Excel_interface.Excel_hifive_;
 
     FpmlSerializedCSharp.Excel_issueInfo serial_excel_issueInfo = serial_Excel_hifive.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);
     
     FpmlSerializedCSharp.Excel_underlyingCalcInfo serial_excel_underlyingCalcInfo = serial_Excel_hifive.Excel_underlyingCalcInfo_;
     string excel_underlyingCalcInfotype = serial_excel_underlyingCalcInfo.Excel_type_.ValueStr;
     this.excel_underlyingCalcInfoViewModel_ = Excel_underlyingCalcInfoViewModel.CreateExcel_underlyingCalcInfo(excel_underlyingCalcInfotype);
     this.excel_underlyingCalcInfoViewModel_.setFromSerial(serial_excel_underlyingCalcInfo);
     
     FpmlSerializedCSharp.Excel_hifive_subtype serial_excel_hifive_subtype = serial_Excel_hifive.Excel_hifive_subtype_;
     string excel_hifive_subtypetype = serial_excel_hifive_subtype.Excel_type_.ValueStr;
     this.excel_hifive_subtypeViewModel_ = Excel_hifive_subtypeViewModel.CreateExcel_hifive_subtype(excel_hifive_subtypetype);
     this.excel_hifive_subtypeViewModel_.setFromSerial(serial_excel_hifive_subtype);
     
     FpmlSerializedCSharp.Excel_scheduleList serial_excel_scheduleList = serial_Excel_hifive.Excel_scheduleList_;
     string excel_scheduleListtype = serial_excel_scheduleList.Excel_type_.ValueStr;
     this.excel_scheduleListViewModel_ = Excel_scheduleListViewModel.CreateExcel_scheduleList(excel_scheduleListtype);
     this.excel_scheduleListViewModel_.setFromSerial(serial_excel_scheduleList);
     
     FpmlSerializedCSharp.Excel_kiEventCalculation serial_excel_kiEventCalculation = serial_Excel_hifive.Excel_kiEventCalculation_;
     string excel_kiEventCalculationtype = serial_excel_kiEventCalculation.Excel_type_.ValueStr;
     this.excel_kiEventCalculationViewModel_ = Excel_kiEventCalculationViewModel.CreateExcel_kiEventCalculation(excel_kiEventCalculationtype);
     this.excel_kiEventCalculationViewModel_.setFromSerial(serial_excel_kiEventCalculation);
     
 }
 public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.Excel_interface serial_Excel_interface = serial_Class as FpmlSerializedCSharp.Excel_interface;
     FpmlSerializedCSharp.Excel_general serial_Excel_general = serial_Excel_interface.Excel_general_;
 
     FpmlSerializedCSharp.Excel_issueInfo serial_excel_issueInfo = serial_Excel_general.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.GeneralSchedule> serial_generalSchedule = serial_Excel_general.GeneralSchedule_;
     this.generalScheduleViewModel_ = new ObservableCollection<GeneralScheduleViewModel>();
     foreach (var item in serial_generalSchedule)
     {
         string type = item.Excel_type_.ValueStr;
         GeneralScheduleViewModel viewModel = GeneralScheduleViewModel.CreateGeneralSchedule(type);
         viewModel.setFromSerial(item);
         this.generalScheduleViewModel_.Add(viewModel);
     }
     
     List<FpmlSerializedCSharp.GeneralTerminationEvent> serial_generalTerminationEvent = serial_Excel_general.GeneralTerminationEvent_;
     this.generalTerminationEventViewModel_ = new ObservableCollection<GeneralTerminationEventViewModel>();
     foreach (var item in serial_generalTerminationEvent)
     {
         string type = item.Excel_type_.ValueStr;
         GeneralTerminationEventViewModel viewModel = GeneralTerminationEventViewModel.CreateGeneralTerminationEvent(type);
         viewModel.setFromSerial(item);
         this.generalTerminationEventViewModel_.Add(viewModel);
     }
     
 }
 public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.Excel_interface serial_Excel_interface = serial_Class as FpmlSerializedCSharp.Excel_interface;
     FpmlSerializedCSharp.Excel_fxForward serial_Excel_fxForward = serial_Excel_interface.Excel_fxForward_;
 
     FpmlSerializedCSharp.Excel_issueInfo serial_excel_issueInfo = serial_Excel_fxForward.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);
     
     FpmlSerializedCSharp.Fx_exchangeLeg serial_fx_exchangeLeg = serial_Excel_fxForward.Fx_exchangeLeg_;
     string fx_exchangeLegtype = serial_fx_exchangeLeg.Excel_type_.ValueStr;
     this.fx_exchangeLegViewModel_ = Fx_exchangeLegViewModel.CreateFx_exchangeLeg(fx_exchangeLegtype);
     this.fx_exchangeLegViewModel_.setFromSerial(serial_fx_exchangeLeg);
     
 }