Esempio n. 1
0
        public void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.FixedBondInstrument serial_FixedBondInstrument = serial_Class as FpmlSerializedCSharp.FixedBondInstrument;

            FpmlSerializedCSharp.BondInformation serial_bondInformation = serial_FixedBondInstrument.BondInformation_;
            string bondInformationtype = serial_bondInformation.Excel_type_.ValueStr;

            this.bondInformationViewModel_ = BondInformationViewModel.CreateBondInformation(bondInformationtype);
            this.bondInformationViewModel_.setFromSerial(serial_bondInformation);

            FpmlSerializedCSharp.BondCouponInfo serial_bondCouponInfo = serial_FixedBondInstrument.BondCouponInfo_;
            string bondCouponInfotype = serial_bondCouponInfo.Excel_type_.ValueStr;

            this.bondCouponInfoViewModel_ = BondCouponInfoViewModel.CreateBondCouponInfo(bondCouponInfotype);
            this.bondCouponInfoViewModel_.setFromSerial(serial_bondCouponInfo);

            FpmlSerializedCSharp.PayoffInfoAnalytic serial_payoffInfoAnalytic = serial_FixedBondInstrument.PayoffInfoAnalytic_;
            string payoffInfoAnalytictype = serial_payoffInfoAnalytic.Excel_type_.ValueStr;

            this.payoffInfoAnalyticViewModel_ = PayoffInfoAnalyticViewModel.CreatePayoffInfoAnalytic(payoffInfoAnalytictype);
            this.payoffInfoAnalyticViewModel_.setFromSerial(serial_payoffInfoAnalytic);
        }
 public  void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.FixedBondInstrument serial_FixedBondInstrument = serial_Class as FpmlSerializedCSharp.FixedBondInstrument;
 
     FpmlSerializedCSharp.BondInformation serial_bondInformation = serial_FixedBondInstrument.BondInformation_;
     string bondInformationtype = serial_bondInformation.Excel_type_.ValueStr;
     this.bondInformationViewModel_ = BondInformationViewModel.CreateBondInformation(bondInformationtype);
     this.bondInformationViewModel_.setFromSerial(serial_bondInformation);
     
     FpmlSerializedCSharp.BondCouponInfo serial_bondCouponInfo = serial_FixedBondInstrument.BondCouponInfo_;
     string bondCouponInfotype = serial_bondCouponInfo.Excel_type_.ValueStr;
     this.bondCouponInfoViewModel_ = BondCouponInfoViewModel.CreateBondCouponInfo(bondCouponInfotype);
     this.bondCouponInfoViewModel_.setFromSerial(serial_bondCouponInfo);
     
     FpmlSerializedCSharp.PayoffInfoAnalytic serial_payoffInfoAnalytic = serial_FixedBondInstrument.PayoffInfoAnalytic_;
     string payoffInfoAnalytictype = serial_payoffInfoAnalytic.Excel_type_.ValueStr;
     this.payoffInfoAnalyticViewModel_ = PayoffInfoAnalyticViewModel.CreatePayoffInfoAnalytic(payoffInfoAnalytictype);
     this.payoffInfoAnalyticViewModel_.setFromSerial(serial_payoffInfoAnalytic);
     
 }