mirror of
https://github.com/jie65535/ChineseChess.git
synced 2024-07-27 18:55:00 +08:00
25 lines
549 B
C#
25 lines
549 B
C#
using System.Diagnostics;
|
|
|
|
using ChineseChess.GUI.Contracts.Services;
|
|
|
|
namespace ChineseChess.GUI.Services
|
|
{
|
|
public class SystemService : ISystemService
|
|
{
|
|
public SystemService()
|
|
{
|
|
}
|
|
|
|
public void OpenInWebBrowser(string url)
|
|
{
|
|
// For more info see https://github.com/dotnet/corefx/issues/10361
|
|
var psi = new ProcessStartInfo
|
|
{
|
|
FileName = url,
|
|
UseShellExecute = true
|
|
};
|
|
Process.Start(psi);
|
|
}
|
|
}
|
|
}
|