示例#1
0
 protected void OnPromotionTypeChanged(Product product)
 {
     if (Promotion != null)
     {
         Console.WriteLine("Product {0} is in promotion: {1}", product.name, product.isPromotion);
         InPromotionEventArgs args = new InPromotionEventArgs(product.name);
         Promotion(this, args);
     }
 }
示例#2
0
文件: Test.cs 项目: quela/myprojects
 public static void Product_OnPromotionTypeChanged(object sender, InPromotionEventArgs eventArgs)
 {
 }