Пример #1
0
 protected virtual void OnStockChange(StockChangeEventArgs e)
 {
     if (StockChange != null)
     {
         StockChange(this, e);
     }
 }
Пример #2
0
 void st_StockChange(object sender, StockChangeEventArgs e)
 {
     CheckFilter(e.Stock);
 }
Пример #3
0
 void st_StockChange(object sender, StockChangeEventArgs e)
 {
     if (e.Stock.Symbol== "GOOG")
         Console.WriteLine("Google's new price is: {0}", e.Stock.Price);
 }