-
Notifications
You must be signed in to change notification settings - Fork 10
/
frmAbout.cs
38 lines (33 loc) · 1.11 KB
/
frmAbout.cs
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;
namespace jjget
{
public partial class frmAbout : Form
{
public frmAbout()
{
InitializeComponent();
}
private string getAssemblyVersion(Type t)
{
var a = System.Reflection.Assembly.GetAssembly(t);
if(a == System.Reflection.Assembly.GetAssembly(typeof(frmAbout)))
return "(bundled)";
return a.GetName().Version.ToString();
}
private void frmAbout_Load(object sender, EventArgs e)
{
label3.Text = "v" + Application.ProductVersion;
label6.Text =
@"HtmlAgilityPack " + getAssemblyVersion(typeof(HtmlAgilityPack.HtmlDocument)) + @"
- https://html-agility-pack.net/
Newtonsoft.Json " + getAssemblyVersion(typeof(Newtonsoft.Json.JsonConverter)) + @"
- https://www.newtonsoft.com/json
";
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start(linkLabel1.Text);
}
}
}