public void DeleteNotification(NotificationInfoBase dc) { Dispatcher.InvokeAsync(() => { Notifications.Remove(dc); CheckShow(); }, DispatcherPriority.Background); }
private bool Pass(NotificationInfoBase infoBase) { return(Notifications.ToSyncList().All(n => n.Message != infoBase.Message)); }