protected static void RemoveDialog(BaseNotification notification) { System.Windows.Application.Current?.Dispatcher?.BeginInvoke(new Action(() => { notificationsSource.Remove(notification); })); }
protected static void AddDialog(BaseNotification notification) { //System.Windows.Application.Current?.Dispatcher?.BeginInvoke(new Action(() => { notificationsSource.Add(notification); })); System.Windows.Application.Current?.Dispatcher?.BeginInvoke(new Action(() => { notificationsSource.Insert(0, notification); })); }