Ejemplo n.º 1
0
 private static void stock_PriceChanged(object sender, PriceChangedEventArgs e)
 {
     if ((e.NewPrice - e.LastPrice) > 0.1m)
     {
         Console.WriteLine("改变的比较大");
     }
 }
Ejemplo n.º 2
0
 protected virtual void OnPriceChanged(PriceChangedEventArgs e)
 {
     PriceChanged?.Invoke(this, e);
 }