public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.EventTrigger serial_EventTrigger = serial_Class as FpmlSerializedCSharp.EventTrigger;
            FpmlSerializedCSharp.SimpleRangeConstReturnTrigger serial_SimpleRangeConstReturnTrigger = serial_EventTrigger.SimpleRangeConstReturnTrigger_;

            this.dateOrder_ = serial_SimpleRangeConstReturnTrigger.DateOrder_.ValueStr;

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

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

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

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

            this.constReturn_ = serial_SimpleRangeConstReturnTrigger.ConstReturn_.ValueStr;

            this.averageDays_ = serial_SimpleRangeConstReturnTrigger.AverageDays_.ValueStr;

            this.isExpired_ = serial_SimpleRangeConstReturnTrigger.IsExpired_.ValueStr;
        }
Example #2
0
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.SimpleRangeEventList serial_SimpleRangeEventList = serial_Class as FpmlSerializedCSharp.SimpleRangeEventList;

            List <FpmlSerializedCSharp.SimpleRangeEventCal> serial_simpleRangeEventCal = serial_SimpleRangeEventList.SimpleRangeEventCal_;

            this.simpleRangeEventCalViewModel_ = new ObservableCollection <SimpleRangeEventCalViewModel>();
            foreach (var item in serial_simpleRangeEventCal)
            {
                string type = item.Excel_type_.ValueStr;
                SimpleRangeEventCalViewModel viewModel = SimpleRangeEventCalViewModel.CreateSimpleRangeEventCal(type);
                viewModel.setFromSerial(item);
                this.simpleRangeEventCalViewModel_.Add(viewModel);
            }
        }
        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);
        }
Example #4
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.EventTrigger             serial_EventTrigger             = serial_Class as FpmlSerializedCSharp.EventTrigger;
            FpmlSerializedCSharp.SimpleRangeReturnTrigger serial_SimpleRangeReturnTrigger = serial_EventTrigger.SimpleRangeReturnTrigger_;

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

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

            this.autoCallFlag_ = serial_SimpleRangeReturnTrigger.AutoCallFlag_.ValueStr;

            this.expired_ = serial_SimpleRangeReturnTrigger.Expired_.ValueStr;

            FpmlSerializedCSharp.PayoffDateInfo serial_payoffDateInfo = serial_SimpleRangeReturnTrigger.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);
     
 }
 public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.EventTrigger serial_EventTrigger = serial_Class as FpmlSerializedCSharp.EventTrigger;
     FpmlSerializedCSharp.SimpleRangeReturnTrigger serial_SimpleRangeReturnTrigger = serial_EventTrigger.SimpleRangeReturnTrigger_;
 
     FpmlSerializedCSharp.SimpleRangeEventCal serial_simpleRangeEventCal = serial_SimpleRangeReturnTrigger.SimpleRangeEventCal_;
     string simpleRangeEventCaltype = serial_simpleRangeEventCal.Excel_type_.ValueStr;
     this.simpleRangeEventCalViewModel_ = SimpleRangeEventCalViewModel.CreateSimpleRangeEventCal(simpleRangeEventCaltype);
     this.simpleRangeEventCalViewModel_.setFromSerial(serial_simpleRangeEventCal);
     
     this.autoCallFlag_ = serial_SimpleRangeReturnTrigger.AutoCallFlag_.ValueStr;
     
     this.expired_ = serial_SimpleRangeReturnTrigger.Expired_.ValueStr;
     
     FpmlSerializedCSharp.PayoffDateInfo serial_payoffDateInfo = serial_SimpleRangeReturnTrigger.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.EventTrigger serial_EventTrigger = serial_Class as FpmlSerializedCSharp.EventTrigger;
     FpmlSerializedCSharp.SimpleRangeConstReturnTrigger serial_SimpleRangeConstReturnTrigger = serial_EventTrigger.SimpleRangeConstReturnTrigger_;
 
     this.dateOrder_ = serial_SimpleRangeConstReturnTrigger.DateOrder_.ValueStr;
     
     FpmlSerializedCSharp.SimpleRangeEventCal serial_simpleRangeEventCal = serial_SimpleRangeConstReturnTrigger.SimpleRangeEventCal_;
     string simpleRangeEventCaltype = serial_simpleRangeEventCal.Excel_type_.ValueStr;
     this.simpleRangeEventCalViewModel_ = SimpleRangeEventCalViewModel.CreateSimpleRangeEventCal(simpleRangeEventCaltype);
     this.simpleRangeEventCalViewModel_.setFromSerial(serial_simpleRangeEventCal);
     
     FpmlSerializedCSharp.PayoffDateInfo serial_payoffDateInfo = serial_SimpleRangeConstReturnTrigger.PayoffDateInfo_;
     string payoffDateInfotype = serial_payoffDateInfo.Excel_type_.ValueStr;
     this.payoffDateInfoViewModel_ = PayoffDateInfoViewModel.CreatePayoffDateInfo(payoffDateInfotype);
     this.payoffDateInfoViewModel_.setFromSerial(serial_payoffDateInfo);
     
     this.constReturn_ = serial_SimpleRangeConstReturnTrigger.ConstReturn_.ValueStr;
     
     this.averageDays_ = serial_SimpleRangeConstReturnTrigger.AverageDays_.ValueStr;
     
     this.isExpired_ = serial_SimpleRangeConstReturnTrigger.IsExpired_.ValueStr;
     
 }