public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_vanillaFloatingCouponScheduleList serial_Excel_vanillaFloatingCouponScheduleList = serial_Class as FpmlSerializedCSharp.Excel_vanillaFloatingCouponScheduleList;

            this.fixedRate_ = serial_Excel_vanillaFloatingCouponScheduleList.FixedRate_.ValueStr;

            this.dayCounter_ = serial_Excel_vanillaFloatingCouponScheduleList.DayCounter_.ValueStr;

            List <FpmlSerializedCSharp.Excel_vanillaFloatingCouponSchedule> serial_excel_vanillaFloatingCouponSchedule = serial_Excel_vanillaFloatingCouponScheduleList.Excel_vanillaFloatingCouponSchedule_;

            this.excel_vanillaFloatingCouponScheduleViewModel_ = new ObservableCollection <Excel_vanillaFloatingCouponScheduleViewModel>();
            foreach (var item in serial_excel_vanillaFloatingCouponSchedule)
            {
                string type = item.Excel_type_.ValueStr;
                Excel_vanillaFloatingCouponScheduleViewModel viewModel = Excel_vanillaFloatingCouponScheduleViewModel.CreateExcel_vanillaFloatingCouponSchedule(type);
                viewModel.setFromSerial(item);
                this.excel_vanillaFloatingCouponScheduleViewModel_.Add(viewModel);
            }
        }
예제 #2
0
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_vanillaFloatingCouponScheduleList serial_Excel_vanillaFloatingCouponScheduleList = serial_Class as FpmlSerializedCSharp.Excel_vanillaFloatingCouponScheduleList;

            //this.scheduleInitialDate_ = serial_Excel_vanillaFloatingCouponScheduleList.ScheduleInitialDate_.ValueStr;
            this.fixedRate_  = serial_Excel_vanillaFloatingCouponScheduleList.FixedRate_.ValueStr;
            this.dayCounter_ = serial_Excel_vanillaFloatingCouponScheduleList.DayCounter_.ValueStr;
            //this.maturityDate_ = serial_Excel_vanillaFloatingCouponScheduleList.MaturityDate_.ValueStr;

            List <FpmlSerializedCSharp.Excel_vanillaFloatingCouponSchedule> serial_excel_vanillaFloatingCouponSchedule = serial_Excel_vanillaFloatingCouponScheduleList.Excel_vanillaFloatingCouponSchedule_;

            this.excel_vanillaFloatingCouponScheduleViewModel_ = new ObservableCollection <Excel_vanillaFloatingCouponScheduleViewModel>();
            foreach (var item in serial_excel_vanillaFloatingCouponSchedule)
            {
                Excel_vanillaFloatingCouponScheduleViewModel viewModel = new Excel_vanillaFloatingCouponScheduleViewModel();
                viewModel.setFromSerial(item);
                this.excel_vanillaFloatingCouponScheduleViewModel_.Add(viewModel);
            }
        }
 public  void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.Excel_vanillaFloatingCouponScheduleList serial_Excel_vanillaFloatingCouponScheduleList = serial_Class as FpmlSerializedCSharp.Excel_vanillaFloatingCouponScheduleList;
 
     //this.scheduleInitialDate_ = serial_Excel_vanillaFloatingCouponScheduleList.ScheduleInitialDate_.ValueStr;
     this.fixedRate_ = serial_Excel_vanillaFloatingCouponScheduleList.FixedRate_.ValueStr;
     this.dayCounter_ = serial_Excel_vanillaFloatingCouponScheduleList.DayCounter_.ValueStr;
     //this.maturityDate_ = serial_Excel_vanillaFloatingCouponScheduleList.MaturityDate_.ValueStr;
     
     List<FpmlSerializedCSharp.Excel_vanillaFloatingCouponSchedule> serial_excel_vanillaFloatingCouponSchedule = serial_Excel_vanillaFloatingCouponScheduleList.Excel_vanillaFloatingCouponSchedule_;
     this.excel_vanillaFloatingCouponScheduleViewModel_ = new ObservableCollection<Excel_vanillaFloatingCouponScheduleViewModel>();
     foreach (var item in serial_excel_vanillaFloatingCouponSchedule)
     {
         Excel_vanillaFloatingCouponScheduleViewModel viewModel = new Excel_vanillaFloatingCouponScheduleViewModel();
         viewModel.setFromSerial(item);
         this.excel_vanillaFloatingCouponScheduleViewModel_.Add(viewModel);
     }
     
 }