/
frmAbout.cs
38 lines (32 loc) · 1.27 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;
using System.Diagnostics;
using System.Reflection;
namespace DBTools
{
public partial class frmAbout : Form
{
public frmAbout()
{
InitializeComponent();
FileVersionInfo fileInfo;
string desc;
string ver;
fileInfo = FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location);
ver = fileInfo.FileMajorPart.ToString() + "." + fileInfo.FileMinorPart.ToString() + "." + fileInfo.FileBuildPart.ToString();
desc = "Database Tools " + ver + Environment.NewLine + Environment.NewLine;
desc = desc + ((AssemblyDescriptionAttribute)Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false)[0]).Description + Environment.NewLine;
lblAck.Text = "Silk icon set provided by Mark James.";
lblLink.Text = "www.famfamfam.com/lab/icons/silk";
lblDesc.Text = desc;
}
private void cmdOK_Click(object sender, EventArgs e)
{
this.Close();
}
private void lblLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("http://" + ((LinkLabel) sender).Text);
}
}
}