Esempio n. 1
0
 private void Update(object sender, StockChangeEventArgs e)
 {
     if (e.Symbol == "GOOG")
     {
         Console.WriteLine("Google's new price is: {0}", e.Price);
     }
 }
 private void Update(object sender, StockChangeEventArgs e)
 {
     if (e.Symbol == "MSFT" && e.Price > 10.0m)
     {
         Console.WriteLine("Microsoft has reached the target price: {0}", e.Price);
     }
 }
Esempio n. 3
0
 public void OnStockChange(StockChangeEventArgs e)
 {
     StockChange?.Invoke(this, e);
 }