예제 #1
0
 public void OnPriceChange(PriceChangedEventAgrs e)
 {
     PriceChanged?.Invoke(this, e);
     //if (PriceChanged != null)
     //{
     //    PriceChanged(this, e);
     //}
 }
예제 #2
0
 public static void product_PricecChanged(object sender, PriceChangedEventAgrs e)
 {
     Console.WriteLine("Old price: " + e.OldPrice);
     Console.WriteLine("New price: " + e.NewPrice);
 }