2010-01-26 22:37:48 +00:00
|
|
|
|
/*
|
|
|
|
|
|
2012-05-27 14:23:31 +00:00
|
|
|
|
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/.
|
2010-01-26 22:37:48 +00:00
|
|
|
|
|
2012-05-27 14:23:31 +00:00
|
|
|
|
Copyright (C) 2009-2010 Michael Möller <mmoeller@openhardwaremonitor.org>
|
|
|
|
|
|
2010-01-26 22:37:48 +00:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
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;
|
2010-02-27 20:26:05 +00:00
|
|
|
|
this.label3.Text = "Version " +
|
2010-09-18 15:13:26 +00:00
|
|
|
|
System.Windows.Forms.Application.ProductVersion;
|
2012-05-27 14:23:31 +00:00
|
|
|
|
|
|
|
|
|
projectLinkLabel.Links.Remove(projectLinkLabel.Links[0]);
|
|
|
|
|
projectLinkLabel.Links.Add(0, projectLinkLabel.Text.Length,
|
2010-01-26 22:37:48 +00:00
|
|
|
|
"http://openhardwaremonitor.org");
|
2012-05-27 14:23:31 +00:00
|
|
|
|
|
|
|
|
|
licenseLinkLabel.Links.Remove(licenseLinkLabel.Links[0]);
|
|
|
|
|
licenseLinkLabel.Links.Add(0, licenseLinkLabel.Text.Length,
|
|
|
|
|
"License.html");
|
2010-01-26 22:37:48 +00:00
|
|
|
|
}
|
|
|
|
|
|
2012-05-27 14:23:31 +00:00
|
|
|
|
private void linkLabel_LinkClicked(object sender,
|
2010-01-26 22:37:48 +00:00
|
|
|
|
LinkLabelLinkClickedEventArgs e) {
|
2010-05-01 15:55:19 +00:00
|
|
|
|
try {
|
|
|
|
|
Process.Start(new ProcessStartInfo(e.Link.LinkData.ToString()));
|
|
|
|
|
} catch { }
|
2010-01-26 22:37:48 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|