示例#1
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.SwapPayoffInfo         serial_SwapPayoffInfo         = serial_Class as FpmlSerializedCSharp.SwapPayoffInfo;
            FpmlSerializedCSharp.AutoCallableSwapPayoff serial_AutoCallableSwapPayoff = serial_SwapPayoffInfo.AutoCallableSwapPayoff_;

            FpmlSerializedCSharp.RecieveSwapPart serial_recieveSwapPart = serial_AutoCallableSwapPayoff.RecieveSwapPart_;
            string recieveSwapParttype = serial_recieveSwapPart.Excel_type_.ValueStr;

            this.recieveSwapPartViewModel_ = RecieveSwapPartViewModel.CreateRecieveSwapPart(recieveSwapParttype);
            this.recieveSwapPartViewModel_.setFromSerial(serial_recieveSwapPart);

            FpmlSerializedCSharp.PaySwapPart serial_paySwapPart = serial_AutoCallableSwapPayoff.PaySwapPart_;
            string paySwapParttype = serial_paySwapPart.Excel_type_.ValueStr;

            this.paySwapPartViewModel_ = PaySwapPartViewModel.CreatePaySwapPart(paySwapParttype);
            this.paySwapPartViewModel_.setFromSerial(serial_paySwapPart);
        }
 public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.SwapPayoffInfo serial_SwapPayoffInfo = serial_Class as FpmlSerializedCSharp.SwapPayoffInfo;
     FpmlSerializedCSharp.AutoCallableSwapPayoff serial_AutoCallableSwapPayoff = serial_SwapPayoffInfo.AutoCallableSwapPayoff_;
 
     FpmlSerializedCSharp.RecieveSwapPart serial_recieveSwapPart = serial_AutoCallableSwapPayoff.RecieveSwapPart_;
     string recieveSwapParttype = serial_recieveSwapPart.Excel_type_.ValueStr;
     this.recieveSwapPartViewModel_ = RecieveSwapPartViewModel.CreateRecieveSwapPart(recieveSwapParttype);
     this.recieveSwapPartViewModel_.setFromSerial(serial_recieveSwapPart);
     
     FpmlSerializedCSharp.PaySwapPart serial_paySwapPart = serial_AutoCallableSwapPayoff.PaySwapPart_;
     string paySwapParttype = serial_paySwapPart.Excel_type_.ValueStr;
     this.paySwapPartViewModel_ = PaySwapPartViewModel.CreatePaySwapPart(paySwapParttype);
     this.paySwapPartViewModel_.setFromSerial(serial_paySwapPart);
     
 }