예제 #1
0
파일: Stock.cs 프로젝트: KaiZhou-SG/CSharp
 /// <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);
     }
 }
예제 #2
0
파일: Stock.cs 프로젝트: KaiZhou-SG/CSharp
 public void Stock_PriceChanged(object sender, PriceChangedEventArgs e)
 {
     Debug.WriteLine("Price changed.");
 }