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

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

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