Exemple #1
0
 private void removeNotification(NotificationMessageDTO notificationMessage)
 {
     if (_allNotifications.Contains(notificationMessage))
     {
         _allNotifications.Remove(notificationMessage);
     }
 }
Exemple #2
0
 public void GoToObject(NotificationMessageDTO notificationMessage)
 {
     if (notificationMessage == null)
     {
         return;
     }
     _applicationController.Select(notificationMessage.Object, notificationMessage.BuildingBlock, _context.HistoryManager);
 }
Exemple #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));
        }
Exemple #4
0
 private bool notificationIsVisible(NotificationMessageDTO message)
 {
     return(_userSettings.ShowPKSimObserverMessages || !isPKSimObserverMessage(message));
 }
Exemple #5
0
 public bool ShouldShow(NotificationMessageDTO notification)
 {
     return(notification.Type.Is(VisibleNotification));
 }