예제 #1
0
        public void Alarm(DateTime time)
        {
            ClockEventArgs args = new ClockEventArgs
            {
                Time = time
            };

            OnAlarm(this, args);
        }
예제 #2
0
 static void Alarming(object sender, ClockEventArgs args)
 {
     Console.WriteLine("时间到!");
 }