# HG changeset patch # User IBBoard # Date 1337442319 -3600 # Node ID 031354c2a34cd0e1c6498c9efb840d42999d30f6 # Parent 5f35edc84791e92eeee30b6a2014ede92fe71e93 * Add Hyperlink that does sensible stuff by default diff -r 5f35edc84791 -r 031354c2a34c IBBoard.Windows.Forms.csproj --- a/IBBoard.Windows.Forms.csproj Sat Jan 21 16:35:20 2012 +0000 +++ b/IBBoard.Windows.Forms.csproj Sat May 19 16:45:19 2012 +0100 @@ -88,6 +88,9 @@ Code + + Component + Component diff -r 5f35edc84791 -r 031354c2a34c Windows/Forms/Hyperlink.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Windows/Forms/Hyperlink.cs Sat May 19 16:45:19 2012 +0100 @@ -0,0 +1,18 @@ +using System; +using System.Diagnostics; +using System.Windows.Forms; +using IBBoard.Lang; + +namespace IBBoard.Windows.Forms +{ + public class Hyperlink : LinkLabel, ITranslatable + { + public string Url { get; set; } + + protected override void OnClick(EventArgs e) + { + Process.Start(Url); + base.OnClick(e); + } + } +}