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