Fix more hyperlink issues

This commit is contained in:
Gustave Monce
2021-08-12 08:37:20 +02:00
parent 7f3c8b1777
commit d8fd0aa516
6 changed files with 36 additions and 7 deletions
+14 -2
View File
@@ -440,7 +440,13 @@ namespace WPinternals
{ {
get get
{ {
return _OpenWebSiteCommand ??= new DelegateCommand(() => Process.Start("www.wpinternals.net")); return _OpenWebSiteCommand ??= new DelegateCommand(() =>
{
Process process = new();
process.StartInfo.UseShellExecute = true;
process.StartInfo.FileName = "www.wpinternals.net";
process.Start();
});
} }
} }
@@ -449,7 +455,13 @@ namespace WPinternals
{ {
get get
{ {
return _DonateCommand ??= new DelegateCommand(() => Process.Start("https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VY8N7BCBT9CS4")); return _DonateCommand ??= new DelegateCommand(() =>
{
Process process = new();
process.StartInfo.UseShellExecute = true;
process.StartInfo.FileName = "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VY8N7BCBT9CS4";
process.Start();
});
} }
} }
+4 -1
View File
@@ -39,7 +39,10 @@ namespace WPinternals
{ {
if (args.Source is Hyperlink link) if (args.Source is Hyperlink link)
{ {
Process.Start(link.NavigateUri.ToString()); Process process = new();
process.StartInfo.UseShellExecute = true;
process.StartInfo.FileName = link.NavigateUri.AbsoluteUri;
process.Start();
} }
} }
+5 -1
View File
@@ -18,6 +18,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE. // DEALINGS IN THE SOFTWARE.
using System.Diagnostics;
using System.Windows; using System.Windows;
using System.Windows.Controls; using System.Windows.Controls;
using System.Windows.Documents; using System.Windows.Documents;
@@ -54,7 +55,10 @@ namespace WPinternals
} }
else else
{ {
System.Diagnostics.Process.Start(link.NavigateUri.ToString()); Process process = new();
process.StartInfo.UseShellExecute = true;
process.StartInfo.FileName = link.NavigateUri.AbsoluteUri;
process.Start();
} }
} }
} }
+5 -1
View File
@@ -18,6 +18,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE. // DEALINGS IN THE SOFTWARE.
using System.Diagnostics;
using System.Windows; using System.Windows;
using System.Windows.Controls; using System.Windows.Controls;
using System.Windows.Documents; using System.Windows.Documents;
@@ -48,7 +49,10 @@ namespace WPinternals
} }
else else
{ {
System.Diagnostics.Process.Start(link.NavigateUri.ToString()); Process process = new();
process.StartInfo.UseShellExecute = true;
process.StartInfo.FileName = link.NavigateUri.AbsoluteUri;
process.Start();
} }
} }
} }
+4 -1
View File
@@ -53,7 +53,10 @@ namespace WPinternals
} }
else else
{ {
Process.Start(link.NavigateUri.AbsoluteUri); Process process = new();
process.StartInfo.UseShellExecute = true;
process.StartInfo.FileName = link.NavigateUri.AbsoluteUri;
process.Start();
} }
} }
} }
@@ -57,7 +57,10 @@ namespace WPinternals
} }
else else
{ {
Process.Start(link.NavigateUri.ToString()); Process process = new();
process.StartInfo.UseShellExecute = true;
process.StartInfo.FileName = link.NavigateUri.AbsoluteUri;
process.Start();
} }
} }
} }