public void LoadData(NavigationLog log) { nav = log; ShellObject obj = log.CurrentLocation; tabTitle.Text = obj.GetDisplayName(DisplayNameType.Default); image1.Source = obj.Thumbnail.BitmapSource; this.ToolTip = obj.ParsingName; }
public void LoadData(NavigationLog log) { nav = log; ShellItem obj = log.CurrentLocation; tabTitle.Text = obj.GetDisplayName(SIGDN.NORMALDISPLAY); image1.Source = obj.Thumbnail.BitmapSource; this.ToolTip = obj.ParsingName; }
public void LoadData(NavigationLog log) { nav = log; var obj = log.CurrentLocation; tabTitle.Text = obj.DisplayName; image1.Source = obj.ThumbnailSource(16, ShellThumbnailFormatOption.IconOnly, ShellThumbnailRetrievalOption.Default); this.ToolTip = obj.ParsingName; }
/// <summary> /// Re-opens a previously closed tab using that tab's navigation log data. /// </summary> /// <param name="log">The navigation log data from the previously closed tab.</param> public void ReOpenTab(NavigationLog log) { CloseableTabItem newt = new CloseableTabItem(); CreateTabbarRKMenu(newt); ShellObject DefPath = log.CurrentLocation; DefPath.Thumbnail.CurrentSize = new System.Windows.Size(16, 16); DefPath.Thumbnail.FormatOption = ShellThumbnailFormatOption.IconOnly; newt.Header = DefPath.GetDisplayName(DisplayNameType.Default); newt.TabIcon = DefPath.Thumbnail.BitmapSource; newt.Path = DefPath; newt.IsNavigate = false; newt.Index = tabControl1.Items.Count; newt.AllowDrop = true; newt.CloseTab += new RoutedEventHandler(newt_CloseTab); newt.DragEnter += new DragEventHandler(newt_DragEnter); newt.DragOver += new DragEventHandler(newt_DragOver); newt.PreviewMouseMove += new MouseEventHandler(newt_PreviewMouseMove); newt.Drop += new DragEventHandler(newt_Drop); newt.TabSelected += newt_TabSelected; tabControl1.Items.Add(newt); LastTabIndex = tabControl1.SelectedIndex; newt.log.ImportData(log); CurrentTabIndex = tabControl1.Items.Count - 1; ConstructMoveToCopyToMenu(); }
public void ImportData(NavigationLog log) { HistoryItems.Clear(); HistoryItems.AddRange(log.HistoryItemsList); CurrentLocIndex = HistoryItems.LastIndexOf(log.CurrentLocation); }
public NavigationLogEventArgs(NavigationLog log) { _obj = log; }