File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ class Constants
1010
1111 public const string HomepageUrl = "https://github.com/KN4CK3R/ReClass.NET" ;
1212
13+ public const string HelpUrl = "https://github.com/KN4CK3R/ReClass.NET/issues" ;
14+
1315#if WIN64
1416 public const string Platform = "x64" ;
1517#else
Original file line number Diff line number Diff line change @@ -119,12 +119,7 @@ private void ShowDetailsForm()
119119 {
120120 if ( item . Exception != null )
121121 {
122- item . Exception . HelpLink = "https://github.com/KN4CK3R/ReClass.NET/issues" ;
123-
124- var msg = new ExceptionMessageBox ( item . Exception ) ;
125- msg . ShowToolBar = true ;
126- msg . Symbol = ExceptionMessageBoxSymbol . Error ;
127- msg . Show ( null ) ;
122+ Program . ShowException ( item . Exception ) ;
128123 }
129124 }
130125 }
Original file line number Diff line number Diff line change 11using System ;
22using System . Globalization ;
33using System . Windows . Forms ;
4+ using Microsoft . SqlServer . MessageBox ;
45using ReClassNET . Forms ;
56using ReClassNET . Logger ;
67using ReClassNET . Memory ;
78using ReClassNET . UI ;
8- using ReClassNET . Util ;
99
1010namespace ReClassNET
1111{
@@ -50,7 +50,7 @@ static void Main()
5050 }
5151 catch ( Exception ex )
5252 {
53- ex . ShowDialog ( ) ;
53+ ShowException ( ex ) ;
5454 }
5555#else
5656 using ( var nativeHelper = new NativeHelper ( ) )
@@ -63,5 +63,17 @@ static void Main()
6363
6464 Settings . Save ( settings , Constants . SettingsFile ) ;
6565 }
66+
67+ /// <summary>Shows the exception in a special form.</summary>
68+ /// <param name="ex">The exception.</param>
69+ public static void ShowException ( Exception ex )
70+ {
71+ ex . HelpLink = Constants . HelpUrl ;
72+
73+ var msg = new ExceptionMessageBox ( ex ) ;
74+ msg . ShowToolBar = true ;
75+ msg . Symbol = ExceptionMessageBoxSymbol . Error ;
76+ msg . Show ( null ) ;
77+ }
6678 }
6779}
You can’t perform that action at this time.
0 commit comments