protected virtual void OnStockChange(StockChangeEventArgs e) { if (StockChange != null) { StockChange(this, e); } }
protected virtual void OnStockChange(StockChangeEventArgs e) { // This rule checks if there are any observers // that are associate with the stock change event if (StockChange != null) { // This rule would call each of the Observers // With the subject and the event arguments StockChange(this, e); } }
void st_StockChange(object sender, StockChangeEventArgs e) { CheckFilter(e.Stock); }