예제 #1
0
        public static void ShowTime(Object sender, Clock.ClockEventArgs e)
        {
            Clock clock = (Clock)sender;

            Console.WriteLine($"现在是{e.clockTime}点钟。");
            Console.WriteLine();
        }
예제 #2
0
        public void MakeAlert(Object sender, Clock.ClockEventArgs e)
        {
            Clock clock = (Clock)sender;

            Console.WriteLine($"嘀嘀嘀,已经到{e.clockTime} 点了!");
            Console.WriteLine();
        }