コード例 #1
0
ファイル: FloatingRateCoupon.cs プロジェクト: akasolace/qlnet
      public virtual void setPricer(FloatingRateCouponPricer pricer)
      {
         if (pricer_ != null)   // remove from the old observable
            pricer_.unregisterWith(update);

         pricer_ = pricer;

         if (pricer_ != null)
            pricer_.registerWith(update);      // add to observers of new pricer

         update();                                   // fire the change event to notify observers of this
      }
コード例 #2
0
ファイル: DigitalCoupon.cs プロジェクト: tzhdingli/qlnet
 public override void setPricer(FloatingRateCouponPricer pricer)
 {
     if (pricer_ != null)
     {
         pricer_.unregisterWith(update);
     }
     pricer_ = pricer;
     if (pricer_ != null)
     {
         pricer_.registerWith(update);
     }
     update();
     underlying_.setPricer(pricer);
 }
コード例 #3
0
        public virtual void setPricer(FloatingRateCouponPricer pricer)
        {
            if (pricer_ != null) // remove from the old observable
            {
                pricer_.unregisterWith(update);
            }

            pricer_ = pricer;

            if (pricer_ != null)
            {
                pricer_.registerWith(update);  // add to observers of new pricer
            }
            update();                          // fire the change event to notify observers of this
        }
コード例 #4
0
ファイル: DigitalCoupon.cs プロジェクト: ammachado/QLNet
 public override void setPricer(FloatingRateCouponPricer pricer)
 {
     if (pricer_ != null)
     pricer_.unregisterWith(update);
      pricer_ = pricer;
      if (pricer_ != null)
     pricer_.registerWith(update);
      update();
      underlying_.setPricer(pricer);
 }