SDownload.Program.OpenUrlInBrowser C# (CSharp) Méthode

OpenUrlInBrowser() private méthode

Opens a url in Chrome
private OpenUrlInBrowser ( String url ) : void
url String The url to browse to
Résultat void
        private void OpenUrlInBrowser(String url)
        {
            try
            {
                Process.Start("firefox", url);
            }
            catch (Exception)
            {
                try
                {

                    Process.Start("explorer.exe", url);
                }
                catch (Exception e)
                {
                    CrashHandler.Throw("There was an issue opening your browser! You can try manually navigating to " + url, e);
                }
            }
        }