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(); } }
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(); } }