public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.FixedCouponSchedule serial_FixedCouponSchedule = serial_Class as FpmlSerializedCSharp.FixedCouponSchedule;

            this.fixedRate_ = serial_FixedCouponSchedule.FixedRate_.ValueStr;

            this.eventDate_ = serial_FixedCouponSchedule.EventDate_.ValueStr;

            this.calculationStartDate_ = serial_FixedCouponSchedule.CalculationStartDate_.ValueStr;

            this.calculationEndDate_ = serial_FixedCouponSchedule.CalculationEndDate_.ValueStr;

            this.paymentDate_ = serial_FixedCouponSchedule.PaymentDate_.ValueStr;

            this.detailScheduleType_ = serial_FixedCouponSchedule.DetailScheduleType_.ValueStr;

            this.description_ = serial_FixedCouponSchedule.Description_.ValueStr;

            FpmlSerializedCSharp.FixedCouponCalculation serial_fixedCouponCalculation = serial_FixedCouponSchedule.FixedCouponCalculation_;
            string fixedCouponCalculationtype = serial_fixedCouponCalculation.Excel_type_.ValueStr;

            this.fixedCouponCalculationViewModel_ = FixedCouponCalculationViewModel.CreateFixedCouponCalculation(fixedCouponCalculationtype);
            this.fixedCouponCalculationViewModel_.setFromSerial(serial_fixedCouponCalculation);

            this.view_             = new FixedCouponScheduleView();
            this.view_.DataContext = this;
        }
Example #2
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.CouponCalculation      serial_CouponCalculation      = serial_Class as FpmlSerializedCSharp.CouponCalculation;
            FpmlSerializedCSharp.FixedCouponCalculation serial_FixedCouponCalculation = serial_CouponCalculation.FixedCouponCalculation_;

            this.fixedRate_ = serial_FixedCouponCalculation.FixedRate_.ValueStr;

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