public FailedGame(Exception e) { var publisher = new ExceptionPublisher(this); this._DetailsToSend = publisher.CreateErrorDetails(e); this._Exception = e; var graphics = new GraphicsDeviceManager(this); this.Content.RootDirectory = "Content"; this.IsMouseVisible = false; var cfgMgr = new ConfigurationManager(this); try { cfgMgr.Load(); this._Config = cfgMgr.Current; } catch (Exception) { this._Config = new Configuration(); } #if !DEBUG graphics.IsFullScreen = true; // TODO: test this with multimonitor (probably OK for it to only show on one monitor). graphics.PreferredBackBufferHeight = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height; graphics.PreferredBackBufferWidth = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width; #endif }
private void SendErrorDetails() { var publisher = new ExceptionPublisher(this); publisher.Publish(this._DetailsToSend); }
private void SaveToDesktop() { var publisher = new ExceptionPublisher(this); publisher.SaveToDesktop(this._DetailsToSend); }
/// <summary> /// Private static helper method to publish the exception information to the default publisher. /// </summary> /// <param name="exception">The exception object whose information should be published.</param> /// <param name="additionalInfo">A collection of additional data that should be published along with the exception information.</param> private static void PublishToDefaultPublisher(Exception exception, NameValueCollection additionalInfo) { // Get the Default Publisher // En Tango Family and Guide no se escribe al Log IExceptionPublisher Publisher=new ExceptionPublisher(); // Publish the exception and any additional information Publisher.Publish(exception, additionalInfo, null); }