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 override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.StandardOption serial_StandardOption = serial_Class as FpmlSerializedCSharp.StandardOption;
            FpmlSerializedCSharp.BarrierWithConstRebateCallOption serial_BarrierWithConstRebateCallOption = serial_StandardOption.BarrierWithConstRebateCallOption_;

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

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

            this.participateRate_ = serial_BarrierWithConstRebateCallOption.ParticipateRate_.ValueStr;

            FpmlSerializedCSharp.ReferenceCalculationInfo serial_referenceCalculationInfo = serial_BarrierWithConstRebateCallOption.ReferenceCalculationInfo_;
            string referenceCalculationInfotype = serial_referenceCalculationInfo.Excel_type_.ValueStr;

            this.referenceCalculationInfoViewModel_ = ReferenceCalculationInfoViewModel.CreateReferenceCalculationInfo(referenceCalculationInfotype);
            this.referenceCalculationInfoViewModel_.setFromSerial(serial_referenceCalculationInfo);

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

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

            this.strike_ = serial_BarrierWithConstRebateCallOption.Strike_.ValueStr;

            this.lowerBound_ = serial_BarrierWithConstRebateCallOption.LowerBound_.ValueStr;

            this.rebateRate_ = serial_BarrierWithConstRebateCallOption.RebateRate_.ValueStr;
        }
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.StandardOption serial_StandardOption = serial_Class as FpmlSerializedCSharp.StandardOption;
            FpmlSerializedCSharp.SingleBarrier  serial_SingleBarrier  = serial_StandardOption.SingleBarrier_;

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

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

            this.participateRate_ = serial_SingleBarrier.ParticipateRate_.ValueStr;

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

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

            this.rebate_ = serial_SingleBarrier.Rebate_.ValueStr;
        }
 public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.StandardOption serial_StandardOption = serial_Class as FpmlSerializedCSharp.StandardOption;
     FpmlSerializedCSharp.BarrierWithConstRebateCallOption serial_BarrierWithConstRebateCallOption = serial_StandardOption.BarrierWithConstRebateCallOption_;
 
     FpmlSerializedCSharp.PayoffDateInfo serial_payoffDateInfo = serial_BarrierWithConstRebateCallOption.PayoffDateInfo_;
     string payoffDateInfotype = serial_payoffDateInfo.Excel_type_.ValueStr;
     this.payoffDateInfoViewModel_ = PayoffDateInfoViewModel.CreatePayoffDateInfo(payoffDateInfotype);
     this.payoffDateInfoViewModel_.setFromSerial(serial_payoffDateInfo);
     
     this.participateRate_ = serial_BarrierWithConstRebateCallOption.ParticipateRate_.ValueStr;
     
     FpmlSerializedCSharp.ReferenceCalculationInfo serial_referenceCalculationInfo = serial_BarrierWithConstRebateCallOption.ReferenceCalculationInfo_;
     string referenceCalculationInfotype = serial_referenceCalculationInfo.Excel_type_.ValueStr;
     this.referenceCalculationInfoViewModel_ = ReferenceCalculationInfoViewModel.CreateReferenceCalculationInfo(referenceCalculationInfotype);
     this.referenceCalculationInfoViewModel_.setFromSerial(serial_referenceCalculationInfo);
     
     FpmlSerializedCSharp.BarrierInfo serial_barrierInfo = serial_BarrierWithConstRebateCallOption.BarrierInfo_;
     string barrierInfotype = serial_barrierInfo.Excel_type_.ValueStr;
     this.barrierInfoViewModel_ = BarrierInfoViewModel.CreateBarrierInfo(barrierInfotype);
     this.barrierInfoViewModel_.setFromSerial(serial_barrierInfo);
     
     this.strike_ = serial_BarrierWithConstRebateCallOption.Strike_.ValueStr;
     
     this.lowerBound_ = serial_BarrierWithConstRebateCallOption.LowerBound_.ValueStr;
     
     this.rebateRate_ = serial_BarrierWithConstRebateCallOption.RebateRate_.ValueStr;
     
 }
 public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.StandardOption serial_StandardOption = serial_Class as FpmlSerializedCSharp.StandardOption;
     FpmlSerializedCSharp.SingleBarrier serial_SingleBarrier = serial_StandardOption.SingleBarrier_;
 
     FpmlSerializedCSharp.PayoffDateInfo serial_payoffDateInfo = serial_SingleBarrier.PayoffDateInfo_;
     string payoffDateInfotype = serial_payoffDateInfo.Excel_type_.ValueStr;
     this.payoffDateInfoViewModel_ = PayoffDateInfoViewModel.CreatePayoffDateInfo(payoffDateInfotype);
     this.payoffDateInfoViewModel_.setFromSerial(serial_payoffDateInfo);
     
     this.participateRate_ = serial_SingleBarrier.ParticipateRate_.ValueStr;
     
     FpmlSerializedCSharp.BarrierInfo serial_barrierInfo = serial_SingleBarrier.BarrierInfo_;
     string barrierInfotype = serial_barrierInfo.Excel_type_.ValueStr;
     this.barrierInfoViewModel_ = BarrierInfoViewModel.CreateBarrierInfo(barrierInfotype);
     this.barrierInfoViewModel_.setFromSerial(serial_barrierInfo);
     
     this.rebate_ = serial_SingleBarrier.Rebate_.ValueStr;
     
 }
 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);
     
 }