Example #1
0
 private void removeNotification(NotificationMessageDTO notificationMessage)
 {
     if (_allNotifications.Contains(notificationMessage))
     {
         _allNotifications.Remove(notificationMessage);
     }
 }
Example #2
0
        private void updateNotificationWith(IEnumerable <NotificationMessageDTO> notificationMessages)
        {
            _allNotifications = new NotifyList <NotificationMessageDTO>(_allNotifications);


            notificationMessages.Where(notificationIsVisible).Each(m =>
            {
                if (!_allNotifications.Contains(m))
                {
                    _allNotifications.Add(m);
                }
            });

            bindToView();
        }