Example #1
0
 static void Stock_PriceChanged(object sender, PriceChangedEventArgs e)
 {
     if ((e.NewPrice - e.LastPrice) / e.LastPrice > 0.1M)
     {
         Console.WriteLine("Alert, 10% stock price increase!");
     }
 }
Example #2
0
 static void Stock_PriceChangedDummy(object sender, PriceChangedEventArgs e)
 {
     Console.WriteLine("huehue");
 }
Example #3
0
 protected virtual void OnPriceChanged(PriceChangedEventArgs e)
 {
     PriceChanged?.Invoke(this, e);
 }