author | StephaneLenclud |
Mon, 04 Feb 2013 00:47:01 +0100 | |
branch | MiniDisplay |
changeset 435 | 9ffcd8ed8537 |
parent 188 | 6ce1c13899e1 |
permissions | -rw-r--r-- |
moel@1 | 1 |
/* |
moel@1 | 2 |
|
moel@344 | 3 |
This Source Code Form is subject to the terms of the Mozilla Public |
moel@344 | 4 |
License, v. 2.0. If a copy of the MPL was not distributed with this |
moel@344 | 5 |
file, You can obtain one at http://mozilla.org/MPL/2.0/. |
moel@1 | 6 |
|
moel@344 | 7 |
Copyright (C) 2009-2010 Michael Möller <mmoeller@openhardwaremonitor.org> |
moel@344 | 8 |
|
moel@1 | 9 |
*/ |
moel@1 | 10 |
|
moel@1 | 11 |
using System; |
moel@1 | 12 |
using System.Collections.Generic; |
moel@1 | 13 |
using System.ComponentModel; |
moel@1 | 14 |
using System.Diagnostics; |
moel@1 | 15 |
using System.Drawing; |
moel@1 | 16 |
using System.Windows.Forms; |
moel@1 | 17 |
|
moel@1 | 18 |
namespace OpenHardwareMonitor.GUI { |
moel@1 | 19 |
public partial class AboutBox : Form { |
moel@1 | 20 |
public AboutBox() { |
moel@1 | 21 |
InitializeComponent(); |
moel@1 | 22 |
this.Font = SystemFonts.MessageBoxFont; |
moel@65 | 23 |
this.label3.Text = "Version " + |
moel@188 | 24 |
System.Windows.Forms.Application.ProductVersion; |
moel@344 | 25 |
|
moel@344 | 26 |
projectLinkLabel.Links.Remove(projectLinkLabel.Links[0]); |
moel@344 | 27 |
projectLinkLabel.Links.Add(0, projectLinkLabel.Text.Length, |
moel@1 | 28 |
"http://openhardwaremonitor.org"); |
moel@344 | 29 |
|
moel@344 | 30 |
licenseLinkLabel.Links.Remove(licenseLinkLabel.Links[0]); |
moel@344 | 31 |
licenseLinkLabel.Links.Add(0, licenseLinkLabel.Text.Length, |
moel@344 | 32 |
"License.html"); |
moel@1 | 33 |
} |
moel@1 | 34 |
|
moel@344 | 35 |
private void linkLabel_LinkClicked(object sender, |
moel@1 | 36 |
LinkLabelLinkClickedEventArgs e) { |
moel@107 | 37 |
try { |
moel@107 | 38 |
Process.Start(new ProcessStartInfo(e.Link.LinkData.ToString())); |
moel@107 | 39 |
} catch { } |
moel@1 | 40 |
} |
moel@1 | 41 |
|
moel@1 | 42 |
} |
moel@1 | 43 |
} |