src/RumahScarlett/RumahScarlett.Presentation/MainProgram.cs
/// <summary>
/// Method yang mengubah exception default menjadi ExceptionReporter
/// </summary>
/// <param name="e">Exception EventArgs</param>
Method yang mengubah exception default menjadi ExceptionReporter
Method yang mengubah exception default menjadi ExceptionReporter
public static void ReportCrash(object sender, ThreadExceptionEventArgs e)
      {
         var reporter = new ExceptionReporter();
         reporter.Config.ShowLessDetailButton = true;
         var productName = Application.ProductName;
         var productVersion = Application.ProductVersion;
         reporter.Config.TitleText = $"{productName} {productVersion} Exception Report";
         reporter.Show(e.Exception);
      }
public static void ReportCrash ( object sender , ThreadExceptionEventArgs e ) { var reporter = new ExceptionReporter ( ) ; reporter . Config . ShowLessDetailButton = true ; var productName = Application . ProductName ; var productVersion = Application . ProductVersion ; reporter . Config . TitleText = $" { productName } { productVersion }  Exception Report " ; reporter . Show ( e . Exception ) ; }
Method yang mengubah exception default menjadi ExceptionReporter
Method yang mengubah exception default menjadi ExceptionReporter
// Title form ExceptionReporter
sender
object
e
ThreadExceptionEventArgs
None