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