OdessaGUIProject.BrowserHelper.LaunchBrowser C# (CSharp) Method

LaunchBrowser() static private method

static private LaunchBrowser ( string url, string term = "" ) : bool
url string
term string
return bool
        internal static bool LaunchBrowser(string url, string term = "")
        {
            string startingSymbol = (url.Contains("?") ? "&" : "?");
            try
            {
                var p = new Process();
                if (term.Length == 0)
                    p.StartInfo.FileName = url;
                else
                    p.StartInfo.FileName = url + startingSymbol + "utm_source=app" + Application.ProductVersion +
                                            "&utm_medium=app&utm_term=" + term + "&utm_campaign=app";

                p.Start();
                return true;
            }
            catch (Exception ex)
            {
                Logger.Error("Error launching browser: " + ex);
                return false;
            }
        }