Example #1
0
 private void removeNotification(NotificationMessageDTO notificationMessage)
 {
     if (_allNotifications.Contains(notificationMessage))
     {
         _allNotifications.Remove(notificationMessage);
     }
 }
Example #2
0
 public void GoToObject(NotificationMessageDTO notificationMessage)
 {
     if (notificationMessage == null)
     {
         return;
     }
     _applicationController.Select(notificationMessage.Object, notificationMessage.BuildingBlock, _context.HistoryManager);
 }
Example #3
0
        private bool isPKSimObserverMessage(NotificationMessageDTO notification)
        {
            if (!notification.Object.IsAnImplementationOf <IObserverBuilder>())
            {
                return(false);
            }

            if (AppConstants.DefaultNames.PKSimStaticObservers.Contains(notification.ObjectName))
            {
                return(true);
            }

            return(AppConstants.DefaultNames.PKSimDynamicObservers.Any(notification.ObjectName.StartsWith));
        }
Example #4
0
 private bool notificationIsVisible(NotificationMessageDTO message)
 {
     return(_userSettings.ShowPKSimObserverMessages || !isPKSimObserverMessage(message));
 }
Example #5
0
 public bool ShouldShow(NotificationMessageDTO notification)
 {
     return(notification.Type.Is(VisibleNotification));
 }