Smrf.NodeXL.ExcelTemplate.GraphMetricsDialog.wbDescription_Navigating C# (CSharp) Method

wbDescription_Navigating() private method

private wbDescription_Navigating ( object sender, System.Windows.Forms.WebBrowserNavigatingEventArgs e ) : void
sender object
e System.Windows.Forms.WebBrowserNavigatingEventArgs
return void
    wbDescription_Navigating
    (
        object sender,
        WebBrowserNavigatingEventArgs e
    )
    {
        // AssertValid();

        String sUrl = e.Url.ToString();

        // This event is fired with an URL of "about:blank" when this dialog
        // sets the WebBrowser's DocumentText property.  Ignore the event in
        // that case.

        if (sUrl.IndexOf("about:blank") == -1)
        {
            // By default, clicking an URL in the description displayed in the
            // WebBrowser control uses Internet Explorer to open the URL.  Use
            // the user's default browser instead.

            e.Cancel = true;
            Process.Start(sUrl);
        }
    }