private void StockChecked_CallBack(SmpStock stock) { if (stock != null) { StockChangedEventArgs args = new StockChangedEventArgs(stock); OnStockChecked(args); } }
private void StockChecked_CallBack(SmpStock stock) { if (stock != null && stock.Code.Length == STOCK_CODE_LEN) { StockChangedEventArgs args = new StockChangedEventArgs(stock); OnStockChecked(args); } }
protected virtual void OnStockChanged(StockChangedEventArgs e) { EventHandler <StockChangedEventArgs> handler = StockChanged; if (handler != null) { handler(this, e); } }
protected virtual void OnStockChecked(StockChangedEventArgs e) { EventHandler <StockChangedEventArgs> handler = StockChecked; if (handler != null) { this.Cursor = System.Windows.Forms.Cursors.WaitCursor; handler(this, e); this.Cursor = System.Windows.Forms.Cursors.Default; } }
protected virtual void OnStockChecked(StockChangedEventArgs e) { EventHandler<StockChangedEventArgs> handler = StockChecked; if (handler != null) { this.Cursor = System.Windows.Forms.Cursors.WaitCursor; handler(this, e); this.Cursor = System.Windows.Forms.Cursors.Default; } }
void StockPanel_StockChecked_EventHandler(object sender, StockChangedEventArgs e) { StockList_Update(e.stock); }
protected virtual void OnStockChanged(StockChangedEventArgs e) { EventHandler<StockChangedEventArgs> handler = StockChanged; if (handler != null) { handler(this, e); } }