public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_kiEventCalculation serial_Excel_kiEventCalculation = serial_Class as FpmlSerializedCSharp.Excel_kiEventCalculation;
            FpmlSerializedCSharp.Excel_dualKiEventCalc    serial_Excel_dualKiEventCalc    = serial_Excel_kiEventCalculation.Excel_dualKiEventCalc_;

            List <FpmlSerializedCSharp.Excel_eventCalcInfo> serial_excel_eventCalcInfo = serial_Excel_dualKiEventCalc.Excel_eventCalcInfo_;

            this.excel_eventCalcInfoViewModel_ = new ObservableCollection <Excel_eventCalcInfoViewModel>();
            foreach (var item in serial_excel_eventCalcInfo)
            {
                string type = item.Excel_type_.ValueStr;
                Excel_eventCalcInfoViewModel viewModel = Excel_eventCalcInfoViewModel.CreateExcel_eventCalcInfo(type);
                viewModel.setFromSerial(item);
                this.excel_eventCalcInfoViewModel_.Add(viewModel);
            }
        }
コード例 #2
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.Excel_couponSchedule serial_Excel_couponSchedule = serial_Class as FpmlSerializedCSharp.Excel_couponSchedule;
            FpmlSerializedCSharp.Excel_multiCondi_structuredCouponSchedule serial_Excel_multiCondi_structuredCouponSchedule = serial_Excel_couponSchedule.Excel_multiCondi_structuredCouponSchedule_;

            this.eventDate_ = StringConverter.xmlDateToDateTime(serial_Excel_multiCondi_structuredCouponSchedule.EventDate_.ValueStr);

            this.payoffDate_ = StringConverter.xmlDateToDateTime(serial_Excel_multiCondi_structuredCouponSchedule.PayoffDate_.ValueStr);

            this.calculationStartDate_ = StringConverter.xmlDateToDateTime(serial_Excel_multiCondi_structuredCouponSchedule.CalculationStartDate_.ValueStr);

            this.calculationEndDate_ = StringConverter.xmlDateToDateTime(serial_Excel_multiCondi_structuredCouponSchedule.CalculationEndDate_.ValueStr);

            this.description_ = serial_Excel_multiCondi_structuredCouponSchedule.Description_.ValueStr;

            this.vba_description_ = serial_Excel_multiCondi_structuredCouponSchedule.Vba_description_.ValueStr;

            List <FpmlSerializedCSharp.Excel_eventCalcInfo> serial_excel_eventCalcInfo = serial_Excel_multiCondi_structuredCouponSchedule.Excel_eventCalcInfo_;

            this.excel_eventCalcInfoViewModel_ = new ObservableCollection <Excel_eventCalcInfoViewModel>();
            foreach (var item in serial_excel_eventCalcInfo)
            {
                string type = item.Excel_type_.ValueStr;
                Excel_eventCalcInfoViewModel viewModel = Excel_eventCalcInfoViewModel.CreateExcel_eventCalcInfo(type);
                viewModel.setFromSerial(item);
                this.excel_eventCalcInfoViewModel_.Add(viewModel);
            }

            List <FpmlSerializedCSharp.Excel_returnCalcInfo> serial_excel_returnCalcInfo = serial_Excel_multiCondi_structuredCouponSchedule.Excel_returnCalcInfo_;

            this.excel_returnCalcInfoViewModel_ = new ObservableCollection <Excel_returnCalcInfoViewModel>();
            foreach (var item in serial_excel_returnCalcInfo)
            {
                string type = item.Excel_type_.ValueStr;
                Excel_returnCalcInfoViewModel viewModel = Excel_returnCalcInfoViewModel.CreateExcel_returnCalcInfo(type);
                viewModel.setFromSerial(item);
                this.excel_returnCalcInfoViewModel_.Add(viewModel);
            }

            this.dayCounter_ = serial_Excel_multiCondi_structuredCouponSchedule.DayCounter_.ValueStr;

            this.detailScheduleType_ = serial_Excel_multiCondi_structuredCouponSchedule.DetailScheduleType_.ValueStr;
        }