private void webBrowser_Navigated(object sender, WebBrowserNavigatedEventArgs e)
        {
            System.Diagnostics.Debug.WriteLine("Navigated to: " + webBrowser.Url.AbsoluteUri.ToString());

            this.Text = webBrowser.DocumentTitle;

            if (this.webBrowser.Url.AbsoluteUri.StartsWith(EndUrl))
            {
                this.PickerResult = new PickerResult(this.webBrowser.Url);
                CloseWindow();
            }
        }
        private void webBrowser_Navigated(object sender, WebBrowserNavigatedEventArgs e)
        {
            System.Diagnostics.Debug.WriteLine("Navigated to: " + webBrowser.Url.AbsoluteUri.ToString());

            this.Text = webBrowser.DocumentTitle;

            if (this.webBrowser.Url.AbsoluteUri.StartsWith(EndUrl))
            {
                this.PickerResult = new PickerResult(this.webBrowser.Url);
                CloseWindow();
            }
        }