Mercurial > repos > IBBoard.Windows.Forms
annotate Windows/Forms/Hyperlink.cs @ 21:031354c2a34c default tip
* Add Hyperlink that does sensible stuff by default
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 19 May 2012 16:45:19 +0100 |
parents | |
children |
rev | line source |
---|---|
21
031354c2a34c
* Add Hyperlink that does sensible stuff by default
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
1 using System; |
031354c2a34c
* Add Hyperlink that does sensible stuff by default
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
2 using System.Diagnostics; |
031354c2a34c
* Add Hyperlink that does sensible stuff by default
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
3 using System.Windows.Forms; |
031354c2a34c
* Add Hyperlink that does sensible stuff by default
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
4 using IBBoard.Lang; |
031354c2a34c
* Add Hyperlink that does sensible stuff by default
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
5 |
031354c2a34c
* Add Hyperlink that does sensible stuff by default
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
6 namespace IBBoard.Windows.Forms |
031354c2a34c
* Add Hyperlink that does sensible stuff by default
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
7 { |
031354c2a34c
* Add Hyperlink that does sensible stuff by default
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
8 public class Hyperlink : LinkLabel, ITranslatable |
031354c2a34c
* Add Hyperlink that does sensible stuff by default
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
9 { |
031354c2a34c
* Add Hyperlink that does sensible stuff by default
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
10 public string Url { get; set; } |
031354c2a34c
* Add Hyperlink that does sensible stuff by default
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
11 |
031354c2a34c
* Add Hyperlink that does sensible stuff by default
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
12 protected override void OnClick(EventArgs e) |
031354c2a34c
* Add Hyperlink that does sensible stuff by default
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
13 { |
031354c2a34c
* Add Hyperlink that does sensible stuff by default
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
14 Process.Start(Url); |
031354c2a34c
* Add Hyperlink that does sensible stuff by default
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
15 base.OnClick(e); |
031354c2a34c
* Add Hyperlink that does sensible stuff by default
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
16 } |
031354c2a34c
* Add Hyperlink that does sensible stuff by default
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
17 } |
031354c2a34c
* Add Hyperlink that does sensible stuff by default
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
18 } |