예제 #1
0
 protected static void RemoveDialog(BaseNotification notification)
 {
     System.Windows.Application.Current?.Dispatcher?.BeginInvoke(new Action(() => { notificationsSource.Remove(notification); }));
 }
예제 #2
0
 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); }));
 }