public event LowAmountHandler LowAmount; // 2th step! protected void onLowAmount(LowAmountEventArgs e) // 3th step! { if (LowAmount != null) { LowAmount(this, e); } }
private static void oCustomer_LowAmount(object sender, LowAmountEventArgs e) // 6th step! { System.Console.WriteLine("----------"); System.Console.WriteLine("Full Name: {0}, Low Amount: {1}", e.FullName, e.LowAmount); System.Console.WriteLine("----------"); }