示例#1
0
 private static void Clock(object sender, Alarm.TimeArgs eventArgs)
 {
     Console.WriteLine("您设定闹钟已到点");
 }
示例#2
0
 private static void ShowTime(object sender, Alarm.TimeArgs eventArgs)
 {
     Console.WriteLine("过了一秒了,现在的时间是" +
                       $"{eventArgs.Hours}点{eventArgs.Minutes}分{eventArgs.Seconds}秒");
 }