Example #1
0
 private void StockChecked_CallBack(SmpStock stock)
 {
     if (stock != null)
     {
         StockChangedEventArgs args = new StockChangedEventArgs(stock);
         OnStockChecked(args);
     }
 }
Example #2
0
 private void StockChecked_CallBack(SmpStock stock)
 {
     if (stock != null && stock.Code.Length == STOCK_CODE_LEN)
     {
         StockChangedEventArgs args = new StockChangedEventArgs(stock);
         OnStockChecked(args);
     }
 }
Example #3
0
        protected virtual void OnStockChanged(StockChangedEventArgs e)
        {
            EventHandler <StockChangedEventArgs> handler = StockChanged;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Example #4
0
        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;
            }
        }
Example #5
0
 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;
     }
 }
Example #6
0
 private void StockChecked_CallBack(SmpStock stock)
 {
     if (stock != null)
     {
         StockChangedEventArgs args = new StockChangedEventArgs(stock);
         OnStockChecked(args);
     }
 }
Example #7
0
 void StockPanel_StockChecked_EventHandler(object sender, StockChangedEventArgs e)
 {
     StockList_Update(e.stock);
 }
Example #8
0
 protected virtual void OnStockChanged(StockChangedEventArgs e)
 {
     EventHandler<StockChangedEventArgs> handler = StockChanged;
     if (handler != null)
     {
         handler(this, e);
     }
 }
Example #9
0
 private void StockChecked_CallBack(SmpStock stock)
 {
     if (stock != null && stock.Code.Length == STOCK_CODE_LEN)
     {
         StockChangedEventArgs args = new StockChangedEventArgs(stock);
         OnStockChecked(args);
     }
 }