예제 #1
0
 private void OnNavigationFailed(object sender, NavigationFailedEventArgs args)
 {
     pendingNavigation = null;
 }
예제 #2
0
        void explorerBrowser_NavigationFailed(object sender, NavigationFailedEventArgs args)
        {
            // This event is BeginInvoked to decouple the explorerBrowser UI from this UI
            this.BeginInvoke(new MethodInvoker(delegate()
            {
                // update event history
                logError("Navigation failed. Failed Location = " + ((args.FailedLocation == null) ? "(unknown)" : args.FailedLocation.Name));

                for (int i = 0; i < this.contextMenu.Items.Count; i++)
                    this.contextMenu.Items[i].Image = null;

                if (this.explorerBrowser.NavigationLog.CurrentLocationIndex != -1)
                    this.contextMenu.Items[this.explorerBrowser.NavigationLog.CurrentLocationIndex].Image =
                        Resources._checked;
            }));
        }
        void explorerBrowser_NavigationFailed(object sender, NavigationFailedEventArgs args)
        {
            // This event is BeginInvoked to decouple the ExplorerBrowser UI from this UI
            BeginInvoke(new MethodInvoker(delegate()
            {
                // update event history text box
                string location = (args.FailedLocation == null) ? "(unknown)" : args.FailedLocation.Name;
                this.eventHistoryTextBox.Text =
                    this.eventHistoryTextBox.Text +
                    "Navigation failed. Failed Location = " + location + "\n";

                if (this.explorerBrowser.NavigationLog.CurrentLocationIndex == -1)
                    this.navigationHistoryCombo.Text = "";
                else
                    this.navigationHistoryCombo.SelectedIndex = this.explorerBrowser.NavigationLog.CurrentLocationIndex;
            }));
        }
 private void browser_NavigationFailed(object sender, NavigationFailedEventArgs e)
 {
     updateButtonStatus();
 }