Last active
September 1, 2016 14:58
-
-
Save sergiorykov/c338c161ab0b34335dbafbaeec6b9f14 to your computer and use it in GitHub Desktop.
Open Browser C#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Diagnostics; | |
namespace Mojito.Core | |
{ | |
public static class Browser | |
{ | |
public static void Open(Uri address) | |
{ | |
// http://stackoverflow.com/questions/58024/open-a-url-from-windows-forms | |
var startInfo = new ProcessStartInfo(address.AbsoluteUri); | |
Process.Start(startInfo); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment