forked from sergiisyrovatchenko/SQLIndexManager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathErrorBox.cs
More file actions
38 lines (28 loc) · 957 Bytes
/
Copy pathErrorBox.cs
File metadata and controls
38 lines (28 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using SQLIndexManager.Properties;
namespace SQLIndexManager {
public partial class ErrorBox : XtraForm {
public ErrorBox(Exception ex) {
InitializeComponent();
edError.Text =
"Application has encountered an unexpected error" +
$"{Environment.NewLine}Please send error detail to {Resources.GitHubLink}" +
$"{Environment.NewLine}Build: {AppInfo.Version}" +
$"{Environment.NewLine}OS: {Environment.OSVersion}" +
$"{Environment.NewLine}{Environment.NewLine}{ex.Message}" +
$"{Environment.NewLine}{ex.Source}" +
$"{Environment.NewLine}{ex.StackTrace}";
}
#region Override Methods
protected override bool ProcessDialogKey(Keys keyData) {
if (keyData == Keys.Escape) {
Close();
return true;
}
return base.ProcessDialogKey(keyData);
}
#endregion
}
}