Exemplo n.º 1
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);
        }
        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);
        }