void explorerBrowser_NavigationComplete(object sender, NavigationCompleteEventArgs args) { // This event is BeginInvoked to decouple the explorerBrowser UI from this UI this.BeginInvoke(new MethodInvoker(delegate() { // update event history if (args.NewLocation == null) { logError("Error retrieving navigation location."); return; } else { logInfo("Navigation completed. New Location = " + args.NewLocation.Name); } if (args.NewLocation != null) { this.pathEdit.Text = new DataComboBox.Element() { Text = args.NewLocation.ParsingName.StartsWith("::{") ? args.NewLocation.Name : args.NewLocation.ParsingName, Value = args.NewLocation.ParsingName } } ; })); }
private void explorerBrowser1_NavigationComplete(object sender, NavigationCompleteEventArgs e) { if (textBoxPath.Text != e.NewLocation.ParsingName) { textBoxPath.Text = e.NewLocation.ParsingName; } }
private void SubExplorer_NavigationComplete(object sender, NavigationCompleteEventArgs e) { SetUniqueHistoryCombo(this.SubExplorerCombo, e.NewLocation, _subHistoryDic); var so = e.NewLocation; if (so.IsFileSystemObject) { this.SubExplorerCombo.Text = e.NewLocation.ParsingName; this.Text = e.NewLocation.ParsingName; } else { this.SubExplorerCombo.Text = e.NewLocation.Name; this.Text = e.NewLocation.Name; } if (IsContainActiveIndex(e.NewLocation.ParsingName)) { SetSubIndexedStatus(); } else { SetSubUnindexedStatus(); } }
private void explorerBrowser_NavigationComplete(object sender, NavigationCompleteEventArgs args) => // This event is BeginInvoked to decouple the ExplorerBrowser UI from this UI BeginInvoke(new MethodInvoker(delegate() { // update event history text box var location = (args.NewLocation == null) ? "(unknown)" : args.NewLocation.Name; eventHistoryTextBox.Text = eventHistoryTextBox.Text + "Navigation completed. New Location = " + location + "\n"; }));
private void explorerBrowser_NavigationComplete(object sender, NavigationCompleteEventArgs e) { BeginInvoke(new MethodInvoker(delegate() { string location = (e.NewLocation == null) ? "(unknown)" : e.NewLocation.ParsingName; string locationName = (e.NewLocation == null) ? "(unknown)" : e.NewLocation.Name; if (!location.Contains("::") && (!TabControlLocked)) { optionSection.settings.GetItemByString("LastPath").Value = location; } tsddbtn.Text = GetRootDriveFromPath(location); tssl.Text = GetFreeDiskSpace(location); if (location.Contains("::")) { navigationHistoryCombo.Text = locationName; if (!navigationHistoryCombo.Items.Contains(locationName)) { navigationHistoryCombo.Items.Add(locationName); } SizePathTextbox(); if (pathChanged != null) { this.pathChanged(locationName, locationName, this); } } else { navigationHistoryCombo.Text = location; if (!navigationHistoryCombo.Items.Contains(location)) { navigationHistoryCombo.Items.Add(location); } SizePathTextbox(); if (pathChanged != null) { this.pathChanged(location, locationName, this); } } })); this.OnMyEvent(); //FormMain.setUserControlExplorer(this, currentTabControl); }
HResult IExplorerBrowserEvents.OnNavigationComplete(IntPtr pidlFolder) { // view mode may change ContentOptions.folderSettings.ViewMode = GetCurrentViewMode(); if (NavigationComplete != null) { NavigationCompleteEventArgs args = new NavigationCompleteEventArgs(); args.NewLocation = ShellObjectFactory.Create(pidlFolder); NavigationComplete(this, args); } return(HResult.Ok); }
void Explorer_NavigationComplete(object sender, NavigationCompleteEventArgs e) { if (e.NewLocation.ParsingName == archive.ParsingName) { btnUpLevel.IsEnabled = false; } else { btnUpLevel.IsEnabled = true; } leftNavBut.IsEnabled = Explorer.NavigationLog.CanNavigateBackward; rightNavBut.IsEnabled = Explorer.NavigationLog.CanNavigateForward; //throw new NotImplementedException(); }
private void Browser_NavigationComplete(object sender, NavigationCompleteEventArgs e) { Text = e.NewLocation.Name; if (e.NewLocation.IsFileSystemObject) { txtNav.Text = e.NewLocation.ParsingName; } else { txtNav.Text = e.NewLocation.GetDisplayName(DisplayNameType.Default); } btnNavUp.Enabled = Directory.Exists(txtNav.Text) && Directory.GetParent(txtNav.Text) != null; btnBack.Enabled = Browser.NavigationLog.CanNavigateBackward; btnForward.Enabled = Browser.NavigationLog.CanNavigateForward; }
private void explorerBrowser_NavigationComplete(object sender, NavigationCompleteEventArgs e) { BeginInvoke(new MethodInvoker(delegate() { //lastVisitedFolders.Insert(0, e.NewLocation.ParsingName ); lastVisitedFolders.Clear(); foreach (ShellObject location in explorerBrowser.NavigationLog.Locations) { lastVisitedFolders.Add(location.ParsingName); } lastVisitedFolders.Reverse(); tscbVistedFolder.Items.Clear(); tscbVistedFolder.Items.AddRange(lastVisitedFolders.ToArray()); tscbVistedFolder.Text = explorerBrowser.NavigationLog.CurrentLocation.ParsingName; explorerBrowser.Focus(); if (!string.IsNullOrEmpty(lastVisitedFile) && File.Exists(lastVisitedFile)) { foreach (var item in explorerBrowser.Items) { if (item is ShellObject) { var so = item as ShellObject; if (so.ParsingName.Equals(lastVisitedFile, StringComparison.CurrentCultureIgnoreCase)) { if (!explorerBrowser.SelectedItems.IsReadOnly) { //explorerBrowser.Navigate(so); } explorerBrowser.Navigate(so); break; } } } } item_changed = false; })); }
HResult IExplorerBrowserEvents.OnNavigationComplete(IntPtr pidlFolder) { // view mode may change ContentOptions.folderSettings.ViewMode = GetCurrentViewMode(); if (NavigationComplete != null) { NavigationCompleteEventArgs args = new NavigationCompleteEventArgs(); args.NewLocation = ShellObjectFactory.Create(pidlFolder); NavigationComplete(this, args); } return HResult.Ok; }
HResult IExplorerBrowserEvents.OnNavigationComplete(IntPtr pidlFolder) { IsPressedLKButton = false; // view mode may change ContentOptions.folderSettings.Options |= FolderOptions.SnapToGrid; ContentOptions.folderSettings.Options |= FolderOptions.AutoArrange; ContentOptions.folderSettings.ViewMode = GetCurrentViewMode(); //ContentOptions.ThumbnailSize = GetCurrentthumbSize(); if (NavigationComplete != null) { NavigationCompleteEventArgs args = new NavigationCompleteEventArgs(); args.NewLocation = ShellObjectFactory.Create(pidlFolder); NavigationComplete(this, args); CurrentLocation = args.NewLocation; } FlushMemory(); return HResult.Ok; }
private void browser_NavigationComplete(object sender, NavigationCompleteEventArgs e) { OnPropertyChanged("CurrentDirectory"); OnPropertyChanged("CurrentFileName"); updateButtonStatus(); }