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