public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.PayoffInfo     serial_PayoffInfo     = serial_Class as FpmlSerializedCSharp.PayoffInfo;
            FpmlSerializedCSharp.StopLossPayoff serial_StopLossPayoff = serial_PayoffInfo.StopLossPayoff_;

            FpmlSerializedCSharp.EventTriggerList serial_eventTriggerList = serial_StopLossPayoff.EventTriggerList_;
            string eventTriggerListtype = serial_eventTriggerList.Excel_type_.ValueStr;

            this.eventTriggerListViewModel_ = EventTriggerListViewModel.CreateEventTriggerList(eventTriggerListtype);
            this.eventTriggerListViewModel_.setFromSerial(serial_eventTriggerList);

            FpmlSerializedCSharp.BarrierInfo serial_barrierInfo = serial_StopLossPayoff.BarrierInfo_;
            string barrierInfotype = serial_barrierInfo.Excel_type_.ValueStr;

            this.barrierInfoViewModel_ = BarrierInfoViewModel.CreateBarrierInfo(barrierInfotype);
            this.barrierInfoViewModel_.setFromSerial(serial_barrierInfo);

            FpmlSerializedCSharp.ReturnCalculation serial_returnCalculation = serial_StopLossPayoff.ReturnCalculation_;
            string returnCalculationtype = serial_returnCalculation.Excel_type_.ValueStr;

            this.returnCalculationViewModel_ = ReturnCalculationViewModel.CreateReturnCalculation(returnCalculationtype);
            this.returnCalculationViewModel_.setFromSerial(serial_returnCalculation);

            FpmlSerializedCSharp.PayoffDateInfo serial_payoffDateInfo = serial_StopLossPayoff.PayoffDateInfo_;
            string payoffDateInfotype = serial_payoffDateInfo.Excel_type_.ValueStr;

            this.payoffDateInfoViewModel_ = PayoffDateInfoViewModel.CreatePayoffDateInfo(payoffDateInfotype);
            this.payoffDateInfoViewModel_.setFromSerial(serial_payoffDateInfo);
        }
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.SimpleRangeReturn serial_SimpleRangeReturn = serial_Class as FpmlSerializedCSharp.SimpleRangeReturn;

            FpmlSerializedCSharp.SimpleRangeEventCal serial_simpleRangeEventCal = serial_SimpleRangeReturn.SimpleRangeEventCal_;
            string simpleRangeEventCaltype = serial_simpleRangeEventCal.Excel_type_.ValueStr;

            this.simpleRangeEventCalViewModel_ = SimpleRangeEventCalViewModel.CreateSimpleRangeEventCal(simpleRangeEventCaltype);
            this.simpleRangeEventCalViewModel_.setFromSerial(serial_simpleRangeEventCal);

            FpmlSerializedCSharp.ReturnCalculation serial_returnCalculation = serial_SimpleRangeReturn.ReturnCalculation_;
            string returnCalculationtype = serial_returnCalculation.Excel_type_.ValueStr;

            this.returnCalculationViewModel_ = ReturnCalculationViewModel.CreateReturnCalculation(returnCalculationtype);
            this.returnCalculationViewModel_.setFromSerial(serial_returnCalculation);
        }
Ejemplo n.º 3
0
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.NoAutoCallReturnTrigger serial_NoAutoCallReturnTrigger = serial_Class as FpmlSerializedCSharp.NoAutoCallReturnTrigger;

            FpmlSerializedCSharp.PayoffDateInfo serial_payoffDateInfo = serial_NoAutoCallReturnTrigger.PayoffDateInfo_;
            string payoffDateInfotype = serial_payoffDateInfo.Excel_type_.ValueStr;

            this.payoffDateInfoViewModel_ = PayoffDateInfoViewModel.CreatePayoffDateInfo(payoffDateInfotype);
            this.payoffDateInfoViewModel_.setFromSerial(serial_payoffDateInfo);

            FpmlSerializedCSharp.ReturnCalculation serial_returnCalculation = serial_NoAutoCallReturnTrigger.ReturnCalculation_;
            string returnCalculationtype = serial_returnCalculation.Excel_type_.ValueStr;

            this.returnCalculationViewModel_ = ReturnCalculationViewModel.CreateReturnCalculation(returnCalculationtype);
            this.returnCalculationViewModel_.setFromSerial(serial_returnCalculation);
        }
Ejemplo n.º 4
0
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.ReturnCalculationInfo serial_ReturnCalculationInfo = serial_Class as FpmlSerializedCSharp.ReturnCalculationInfo;

            List <FpmlSerializedCSharp.ReturnCalculation> serial_returnCalculation = serial_ReturnCalculationInfo.ReturnCalculation_;

            this.returnCalculationViewModel_ = new ObservableCollection <ReturnCalculationViewModel>();
            foreach (var item in serial_returnCalculation)
            {
                string type = item.Excel_type_.ValueStr;
                ReturnCalculationViewModel viewModel = ReturnCalculationViewModel.CreateReturnCalculation(type);
                viewModel.setFromSerial(item);
                this.returnCalculationViewModel_.Add(viewModel);
            }

            FpmlSerializedCSharp.OperatorND serial_operatorND = serial_ReturnCalculationInfo.OperatorND_;
            string operatorNDtype = serial_operatorND.Excel_type_.ValueStr;

            this.operatorNDViewModel_ = OperatorNDViewModel.CreateOperatorND(operatorNDtype);
            this.operatorNDViewModel_.setFromSerial(serial_operatorND);
        }
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.EventTrigger         serial_EventTrigger         = serial_Class as FpmlSerializedCSharp.EventTrigger;
            FpmlSerializedCSharp.VanillaCouponTrigger serial_VanillaCouponTrigger = serial_EventTrigger.VanillaCouponTrigger_;

            this.gearing_ = serial_VanillaCouponTrigger.Gearing_.ValueStr;

            this.spread_ = serial_VanillaCouponTrigger.Spread_.ValueStr;

            FpmlSerializedCSharp.ReturnCalculation serial_returnCalculation = serial_VanillaCouponTrigger.ReturnCalculation_;
            string returnCalculationtype = serial_returnCalculation.Excel_type_.ValueStr;

            this.returnCalculationViewModel_ = ReturnCalculationViewModel.CreateReturnCalculation(returnCalculationtype);
            this.returnCalculationViewModel_.setFromSerial(serial_returnCalculation);

            FpmlSerializedCSharp.PayoffDateInfo serial_payoffDateInfo = serial_VanillaCouponTrigger.PayoffDateInfo_;
            string payoffDateInfotype = serial_payoffDateInfo.Excel_type_.ValueStr;

            this.payoffDateInfoViewModel_ = PayoffDateInfoViewModel.CreatePayoffDateInfo(payoffDateInfotype);
            this.payoffDateInfoViewModel_.setFromSerial(serial_payoffDateInfo);

            this.isExpired_ = serial_VanillaCouponTrigger.IsExpired_.ValueStr;
        }