File tree Expand file tree Collapse file tree 3 files changed +17
-8
lines changed Expand file tree Collapse file tree 3 files changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ class Constants
10
10
11
11
public const string HomepageUrl = "https://github.com/KN4CK3R/ReClass.NET" ;
12
12
13
+ public const string HelpUrl = "https://github.com/KN4CK3R/ReClass.NET/issues" ;
14
+
13
15
#if WIN64
14
16
public const string Platform = "x64" ;
15
17
#else
Original file line number Diff line number Diff line change @@ -119,12 +119,7 @@ private void ShowDetailsForm()
119
119
{
120
120
if ( item . Exception != null )
121
121
{
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 ) ;
128
123
}
129
124
}
130
125
}
Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using System . Globalization ;
3
3
using System . Windows . Forms ;
4
+ using Microsoft . SqlServer . MessageBox ;
4
5
using ReClassNET . Forms ;
5
6
using ReClassNET . Logger ;
6
7
using ReClassNET . Memory ;
7
8
using ReClassNET . UI ;
8
- using ReClassNET . Util ;
9
9
10
10
namespace ReClassNET
11
11
{
@@ -50,7 +50,7 @@ static void Main()
50
50
}
51
51
catch ( Exception ex )
52
52
{
53
- ex . ShowDialog ( ) ;
53
+ ShowException ( ex ) ;
54
54
}
55
55
#else
56
56
using ( var nativeHelper = new NativeHelper ( ) )
@@ -63,5 +63,17 @@ static void Main()
63
63
64
64
Settings . Save ( settings , Constants . SettingsFile ) ;
65
65
}
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
+ }
66
78
}
67
79
}
You can’t perform that action at this time.
0 commit comments