示例#1
0
        public TimerNotificationDisplayPart(TimerNotification timerNotification)
        {
            TimerNotification = timerNotification;

            InitializeComponent();

            Bind(timerNotification);
        }
示例#2
0
文件: Program.cs 项目: yuzukwok/NetMX
        static void OnTimerEvent(Notification notification, object handback)
        {
            TimerNotification timerNotif = (TimerNotification)notification;

            Console.WriteLine("Timer event {0}! Message: {1}, user provided data: {2}", timerNotif.Type, timerNotif.Message, notification.UserData);
        }