-
Notifications
You must be signed in to change notification settings - Fork 115
Expand file tree
/
Copy pathAboutBox.cs
More file actions
48 lines (36 loc) · 1.02 KB
/
AboutBox.cs
File metadata and controls
48 lines (36 loc) · 1.02 KB
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
39
40
41
42
43
44
45
46
47
48
using System;
using System.Diagnostics;
using System.Windows.Forms;
using DevExpress.Utils;
using DevExpress.XtraEditors;
using SQLIndexManager.Common;
using SQLIndexManager.Core;
using SQLIndexManager.Properties;
namespace SQLIndexManager.Forms {
public partial class AboutBox : XtraForm {
public AboutBox() {
InitializeComponent();
labelProductName.Text = AppInfo.Title;
labelProductDescription.Text = AppInfo.Product;
labelCopyright.Text = $"Copyright by {AppInfo.Copyright}";
labelVersion.Text = AppInfo.Version;
}
private void GitHub_HyperlinkClick(object sender, HyperlinkClickEventArgs e) {
try {
Process.Start(Resources.GitHubLink);
}
catch (Exception ex) {
UIUtils.ShowErrorFrom(ex);
}
}
#region Override Methods
protected override bool ProcessDialogKey(Keys keyData) {
if (keyData == Keys.Escape) {
Close();
return true;
}
return base.ProcessDialogKey(keyData);
}
#endregion
}
}