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);
        }
예제 #2
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.PayoffInfo         serial_PayoffInfo         = serial_Class as FpmlSerializedCSharp.PayoffInfo;
            FpmlSerializedCSharp.AutoCallablePayoff serial_AutoCallablePayoff = serial_PayoffInfo.AutoCallablePayoff_;

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

            this.eventTriggerListViewModel_ = EventTriggerListViewModel.CreateEventTriggerList(eventTriggerListtype);
            this.eventTriggerListViewModel_.setFromSerial(serial_eventTriggerList);
        }
예제 #3
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.PayoffInfo         serial_PayoffInfo         = serial_Class as FpmlSerializedCSharp.PayoffInfo;
            FpmlSerializedCSharp.AutoCallablePayoff serial_AutoCallablePayoff = serial_PayoffInfo.AutoCallablePayoff_;

            FpmlSerializedCSharp.EventTriggerList serial_eventTriggerList = serial_AutoCallablePayoff.EventTriggerList_;
            this.eventTriggerListViewModel_.setFromSerial(serial_eventTriggerList);

            //this.view_ = new AutoCallablePayoffView();
            this.view_.DataContext = this;
        }
예제 #4
0
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.EventTriggerList serial_EventTriggerList = serial_Class as FpmlSerializedCSharp.EventTriggerList;

            List <FpmlSerializedCSharp.EventTrigger> serial_eventTrigger = serial_EventTriggerList.EventTrigger_;

            this.eventTriggerViewModel_ = new ObservableCollection <EventTriggerViewModel>();
            foreach (var item in serial_eventTrigger)
            {
                string type = item.Excel_type_.ValueStr;
                EventTriggerViewModel viewModel = EventTriggerViewModel.CreateEventTrigger(type);
                viewModel.setFromSerial(item);
                this.eventTriggerViewModel_.Add(viewModel);
            }
        }
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.PayoffInfo         serial_PayoffInfo         = serial_Class as FpmlSerializedCSharp.PayoffInfo;
            FpmlSerializedCSharp.StepDownNoKIPayoff serial_StepDownNoKIPayoff = serial_PayoffInfo.StepDownNoKIPayoff_;

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

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

            FpmlSerializedCSharp.NoAutoCallReturnTrigger serial_noAutoCallReturnTrigger = serial_StepDownNoKIPayoff.NoAutoCallReturnTrigger_;
            string noAutoCallReturnTriggertype = serial_noAutoCallReturnTrigger.Excel_type_.ValueStr;

            this.noAutoCallReturnTriggerViewModel_ = NoAutoCallReturnTriggerViewModel.CreateNoAutoCallReturnTrigger(noAutoCallReturnTriggertype);
            this.noAutoCallReturnTriggerViewModel_.setFromSerial(serial_noAutoCallReturnTrigger);
        }
예제 #6
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.PayoffInfo       serial_PayoffInfo       = serial_Class as FpmlSerializedCSharp.PayoffInfo;
            FpmlSerializedCSharp.StepDownKIPayoff serial_StepDownKIPayoff = serial_PayoffInfo.StepDownKIPayoff_;

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

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

            FpmlSerializedCSharp.KiEventInfo serial_kiEventInfo = serial_StepDownKIPayoff.KiEventInfo_;
            string kiEventInfotype = serial_kiEventInfo.Excel_type_.ValueStr;

            this.kiEventInfoViewModel_ = KiEventInfoViewModel.CreateKiEventInfo(kiEventInfotype);
            this.kiEventInfoViewModel_.setFromSerial(serial_kiEventInfo);

            FpmlSerializedCSharp.NonKiEventInfo serial_nonKiEventInfo = serial_StepDownKIPayoff.NonKiEventInfo_;
            string nonKiEventInfotype = serial_nonKiEventInfo.Excel_type_.ValueStr;

            this.nonKiEventInfoViewModel_ = NonKiEventInfoViewModel.CreateNonKiEventInfo(nonKiEventInfotype);
            this.nonKiEventInfoViewModel_.setFromSerial(serial_nonKiEventInfo);
        }