public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
 {
     FpmlSerializedCSharp.CreditPayoffInfo serial_CreditPayoffInfo = serial_Class as FpmlSerializedCSharp.CreditPayoffInfo;
     FpmlSerializedCSharp.CreditDefaultSwap serial_CreditDefaultSwap = serial_CreditPayoffInfo.CreditDefaultSwap_;
 
     FpmlSerializedCSharp.ProtectionPart serial_protectionPart = serial_CreditDefaultSwap.ProtectionPart_;
     this.protectionPartViewModel_ = new ProtectionPartViewModel();
     this.protectionPartViewModel_.setFromSerial(serial_protectionPart);
     
     FpmlSerializedCSharp.CouponPart serial_couponPart = serial_CreditDefaultSwap.CouponPart_;
     this.couponPartViewModel_ = new CouponPartViewModel();
     this.couponPartViewModel_.setFromSerial(serial_couponPart);
     
     this.view_ = new CreditDefaultSwapView();
     this.view_.DataContext = this;
 }
Beispiel #2
0
        public override void setFromSerial(FpmlSerializedCSharp.ISerialized serial_Class)
        {
            FpmlSerializedCSharp.CreditPayoffInfo  serial_CreditPayoffInfo  = serial_Class as FpmlSerializedCSharp.CreditPayoffInfo;
            FpmlSerializedCSharp.CreditDefaultSwap serial_CreditDefaultSwap = serial_CreditPayoffInfo.CreditDefaultSwap_;

            FpmlSerializedCSharp.ProtectionPart serial_protectionPart = serial_CreditDefaultSwap.ProtectionPart_;
            this.protectionPartViewModel_ = new ProtectionPartViewModel();
            this.protectionPartViewModel_.setFromSerial(serial_protectionPart);

            FpmlSerializedCSharp.CouponPart serial_couponPart = serial_CreditDefaultSwap.CouponPart_;
            this.couponPartViewModel_ = new CouponPartViewModel();
            this.couponPartViewModel_.setFromSerial(serial_couponPart);

            this.view_             = new CreditDefaultSwapView();
            this.view_.DataContext = this;
        }