static void ShowWarning(object sender, BigMoneyFetchedEventArgs e) {//定义一个方法 { Console.WriteLine("\n***Big Money Fetch Warning***\n"); Console.WriteLine("*** account " + e.Id + " Fetch " + e.Money + "***"); Console.WriteLine("\n*****************************\n"); } }
static void ShowBigMoneyWarning(object sender, BigMoneyFetchedEventArgs args) { Console.WriteLine("Warning: ID {0} just withdrew {1}! ", args.Account.Id, args.Amount); }