private static void ShowErrors(NotificationHandler mediator)
 {
     Console.ForegroundColor = ConsoleColor.Red;
     Console.WriteLine("A unexpected situation happend:");
     foreach (var error in mediator.GetNotifications())
     {
         Console.WriteLine(error);
     }
     mediator.ClearNotifications();
     Console.ForegroundColor = ConsoleColor.White;
 }
Esempio n. 2
0
 public void ClearNotifications()
 {
     NotificationHandler.ClearNotifications();
     OnToastListCleared?.Invoke(this, new ToastChangedEventArgs());
     OnToastChanged?.Invoke(this, new ToastChangedEventArgs());
 }