public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.ScheduleInfo serial_ScheduleInfo = serial_Class as FpmlSerializedCSharp.ScheduleInfo;

            this.initialDate_ = serial_ScheduleInfo.InitialDate_.ValueStr;

            this.endDate_ = serial_ScheduleInfo.EndDate_.ValueStr;

            this.paymentDays_ = serial_ScheduleInfo.PaymentDays_.ValueStr;

            this.calendar_ = serial_ScheduleInfo.Calendar_.ValueStr;

            this.businessDayConvention_ = serial_ScheduleInfo.BusinessDayConvention_.ValueStr;

            this.dateGeneration_ = serial_ScheduleInfo.DateGeneration_.ValueStr;

            this.periodFrequency_ = serial_ScheduleInfo.PeriodFrequency_.ValueStr;

            this.view_             = new ScheduleInfoView();
            this.view_.DataContext = this;
        }
Ejemplo n.º 2
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.SwapStream     serial_SwapStream     = serial_Class as FpmlSerializedCSharp.SwapStream;
            FpmlSerializedCSharp.StandardStream serial_StandardStream = serial_SwapStream.StandardStream_;

            FpmlSerializedCSharp.ScheduleInfo serial_scheduleInfo = serial_StandardStream.ScheduleInfo_;
            this.scheduleInfoViewModel_ = new ScheduleInfoViewModel();
            this.scheduleInfoViewModel_.setFromSerial(serial_scheduleInfo);

            List <FpmlSerializedCSharp.IRCalculation> serial_irCalculation = serial_StandardStream.IrCalculation_;

            this.irCalculationViewModel_ = new ObservableCollection <IRCalculationViewModel>();
            foreach (var item in serial_irCalculation)
            {
                IRCalculationViewModel viewModel = new IRCalculationViewModel();
                viewModel.setFromSerial(item);
                this.irCalculationViewModel_.Add(viewModel);
            }

            this.view_             = new StandardStreamView();
            this.view_.DataContext = this;
        }