private void removeNotification(NotificationMessageDTO notificationMessage) { if (_allNotifications.Contains(notificationMessage)) { _allNotifications.Remove(notificationMessage); } }
private void updateNotificationWith(IEnumerable <NotificationMessageDTO> notificationMessages) { _allNotifications = new NotifyList <NotificationMessageDTO>(_allNotifications); notificationMessages.Where(notificationIsVisible).Each(m => { if (!_allNotifications.Contains(m)) { _allNotifications.Add(m); } }); bindToView(); }