public TimerNotificationDisplayPart(TimerNotification timerNotification) { TimerNotification = timerNotification; InitializeComponent(); Bind(timerNotification); }
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); }