Пример #1
0
        public event LowAmountHandler LowAmount;         // 2th step!

        protected void onLowAmount(LowAmountEventArgs e) // 3th step!
        {
            if (LowAmount != null)
            {
                LowAmount(this, e);
            }
        }
Пример #2
0
 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("----------");
 }