forked from openhardwaremonitor/openhardwaremonitor
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathAboutBox.cs
43 lines (34 loc) · 1.28 KB
/
AboutBox.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
39
40
41
42
43
/*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (C) 2009-2010 Michael Möller <[email protected]>
*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;
namespace OpenHardwareMonitor.GUI {
public partial class AboutBox : Form {
public AboutBox() {
InitializeComponent();
this.Font = SystemFonts.MessageBoxFont;
this.label3.Text = "Version " +
System.Windows.Forms.Application.ProductVersion;
projectLinkLabel.Links.Remove(projectLinkLabel.Links[0]);
projectLinkLabel.Links.Add(0, projectLinkLabel.Text.Length,
"http://openhardwaremonitor.org");
licenseLinkLabel.Links.Remove(licenseLinkLabel.Links[0]);
licenseLinkLabel.Links.Add(0, licenseLinkLabel.Text.Length,
"License.html");
}
private void linkLabel_LinkClicked(object sender,
LinkLabelLinkClickedEventArgs e) {
try {
Process.Start(new ProcessStartInfo(e.Link.LinkData.ToString()));
} catch { }
}
}
}