Example #1
0
 /// <summary>
 /// The delegate: OnPriceChanged.
 /// This delegate is used to invoke another function to
 /// do the actual work when the PriceChanged EventHandler
 /// is invoked.
 /// </summary>
 /// <param name="e"></param>
 protected virtual void OnPriceChanged(PriceChangedEventArgs e)
 {
     if (PriceChanged != null)
     {
         PriceChanged(this, e);
     }
 }
Example #2
0
 public void Stock_PriceChanged(object sender, PriceChangedEventArgs e)
 {
     Debug.WriteLine("Price changed.");
 }