open links in about form with system default browser

This commit is contained in:
Faryan Rezagholi
2019-04-29 21:46:47 +02:00
parent c8c98ebc02
commit 017934ab8e
2 changed files with 9 additions and 0 deletions

View File

@@ -132,6 +132,7 @@
this.gwbCredits.Size = new System.Drawing.Size(552, 464);
this.gwbCredits.TabIndex = 12;
this.gwbCredits.UseHttpActivityObserver = false;
this.gwbCredits.DomClick += new System.EventHandler<Gecko.DomMouseEventArgs>(this.LinkClicked);
//
// gwbChangeLog
//
@@ -143,6 +144,7 @@
this.gwbChangeLog.Size = new System.Drawing.Size(553, 464);
this.gwbChangeLog.TabIndex = 13;
this.gwbChangeLog.UseHttpActivityObserver = false;
this.gwbChangeLog.DomClick += new System.EventHandler<Gecko.DomMouseEventArgs>(this.LinkClicked);
//
// tlpTop
//

View File

@@ -1,4 +1,5 @@
using System;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Text;
@@ -161,5 +162,11 @@ namespace mRemoteNG.UI.Window
#endif
#endregion
private void LinkClicked(object sender, DomMouseEventArgs e)
{
Process.Start(((GeckoWebBrowser)sender).StatusText);
e.Handled = true;
}
}
}