Exemplo n.º 1
0
 private void ShowOrQueueNotification(NotificationInfo notificationInfo)
 {
     // If not notification is presented, create one.
     if (_currentNotificationWindow == null)
     {
         _currentNotificationWindow         = new NotificationWindow(notificationInfo);
         _currentNotificationWindow.Closed += CurrentNotificationWindow_Closed;
         _currentNotificationWindow.Show();
     }
     else
     {
         _notificationQueue.Enqueue(notificationInfo);
     }
 }