Esempio n. 1
0
 public static void ShowUnhandledError(Exception e)
 {
     try
     {
         IView latestView = ViewFactory.Current.LatestView;
         if (Logger.Current!=null) Logger.Current.Write(e, "Unexpected error in GamesManager");
         var controller = new SubmitErrorPresenter("Unexpected error in GamesManager", e.ToString());
         controller.View.Closed += (s, args) => Application.Exit();
         controller.ShowView(latestView);
     }
     catch (Exception)
     {
         Application.Exit();
     }
 }
Esempio n. 2
0
 public static void ShowUnhandledError(Exception e)
 {
     try
     {
         IView latestView = ViewFactory.Current.LatestView;
         if (Logger.Current != null)
         {
             Logger.Current.Write(e, "Unexpected error in GamesManager");
         }
         var controller = new SubmitErrorPresenter("Unexpected error in GamesManager", e.ToString());
         controller.View.Closed += (s, args) => Application.Exit();
         controller.ShowView(latestView);
     }
     catch (Exception)
     {
         Application.Exit();
     }
 }