moel@1: /* moel@1: moel@344: This Source Code Form is subject to the terms of the Mozilla Public moel@344: License, v. 2.0. If a copy of the MPL was not distributed with this moel@344: file, You can obtain one at http://mozilla.org/MPL/2.0/. moel@1: moel@344: Copyright (C) 2009-2010 Michael Möller moel@344: moel@1: */ moel@1: moel@1: using System; moel@1: using System.Collections.Generic; moel@1: using System.ComponentModel; moel@1: using System.Diagnostics; moel@1: using System.Drawing; moel@1: using System.Windows.Forms; moel@1: moel@1: namespace OpenHardwareMonitor.GUI { moel@1: public partial class AboutBox : Form { moel@1: public AboutBox() { moel@1: InitializeComponent(); moel@1: this.Font = SystemFonts.MessageBoxFont; moel@65: this.label3.Text = "Version " + moel@188: System.Windows.Forms.Application.ProductVersion; moel@344: moel@344: projectLinkLabel.Links.Remove(projectLinkLabel.Links[0]); moel@344: projectLinkLabel.Links.Add(0, projectLinkLabel.Text.Length, moel@1: "http://openhardwaremonitor.org"); moel@344: moel@344: licenseLinkLabel.Links.Remove(licenseLinkLabel.Links[0]); moel@344: licenseLinkLabel.Links.Add(0, licenseLinkLabel.Text.Length, moel@344: "License.html"); moel@1: } moel@1: moel@344: private void linkLabel_LinkClicked(object sender, moel@1: LinkLabelLinkClickedEventArgs e) { moel@107: try { moel@107: Process.Start(new ProcessStartInfo(e.Link.LinkData.ToString())); moel@107: } catch { } moel@1: } moel@1: moel@1: } moel@1: }