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

            InitializeComponent();

            Bind(timerNotification);
        }
Beispiel #2
0
        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);
        }