/// <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); } }
public void Stock_PriceChanged(object sender, PriceChangedEventArgs e) { Debug.WriteLine("Price changed."); }