mirror of
https://github.com/ReneLergner/WPinternals.git
synced 2026-06-14 03:16:40 +10:00
Fix more hyperlink issues
This commit is contained in:
@@ -440,7 +440,13 @@ namespace WPinternals
|
||||
{
|
||||
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
|
||||
{
|
||||
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
@@ -39,7 +39,10 @@ namespace WPinternals
|
||||
{
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Documents;
|
||||
@@ -54,7 +55,10 @@ namespace WPinternals
|
||||
}
|
||||
else
|
||||
{
|
||||
System.Diagnostics.Process.Start(link.NavigateUri.ToString());
|
||||
Process process = new();
|
||||
process.StartInfo.UseShellExecute = true;
|
||||
process.StartInfo.FileName = link.NavigateUri.AbsoluteUri;
|
||||
process.Start();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Documents;
|
||||
@@ -48,7 +49,10 @@ namespace WPinternals
|
||||
}
|
||||
else
|
||||
{
|
||||
System.Diagnostics.Process.Start(link.NavigateUri.ToString());
|
||||
Process process = new();
|
||||
process.StartInfo.UseShellExecute = true;
|
||||
process.StartInfo.FileName = link.NavigateUri.AbsoluteUri;
|
||||
process.Start();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,7 +53,10 @@ namespace WPinternals
|
||||
}
|
||||
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
|
||||
{
|
||||
Process.Start(link.NavigateUri.ToString());
|
||||
Process process = new();
|
||||
process.StartInfo.UseShellExecute = true;
|
||||
process.StartInfo.FileName = link.NavigateUri.AbsoluteUri;
|
||||
process.Start();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user