Beispiel #1
0
        private bool _debug; // Set this to true to quickly fire off the same notifications over and over.

        public NotificationQueue()
        {
            _timer = new DispatcherTimer(DispatcherPriority.Normal);
            _timer.Tick += CheckForNotifications;
            _timer.Interval = new TimeSpan(0, 0, 2);
            if (_debug)
            {
                _timer.Interval = new TimeSpan(0, 0, 0, 2);
            }


            DisplayedNotifications = new NotificationList();
        }
 public RemoveNotificationCommand(Notification notification, NotificationList notifications)
 {
     _notifications = notifications;
     _notification = notification;
 }